Skip to content

Commit 48b1991

Browse files
authored
[NVPTX][test] Use 'not' to switch an XFAIL test to PASS (#130839)
Use 'not' to confirm the test has the desired behavior and move it to passing.
1 parent f4d599c commit 48b1991

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/CodeGen/NVPTX/gvar-init.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: llc < %s -mtriple=nvptx -mcpu=sm_20 | FileCheck %s
1+
; RUN: not --crash llc < %s -mtriple=nvptx -mcpu=sm_20 2>&1 | FileCheck %s
22

33
; Error out if initializer is given for address spaces that do not support initializers
4-
; XFAIL: *
4+
; CHECK: LLVM ERROR: initial value of 'g0' is not allowed in addrspace(3)
55
@g0 = addrspace(3) global i32 42

0 commit comments

Comments
 (0)