Skip to content

Commit 7288995

Browse files
committed
Update the test
1 parent 77d6984 commit 7288995

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/test/ASTMerge/enum/test2.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// RUN: %clang_cc1 -std=c23 -emit-pch -o %t.1.ast %S/Inputs/enum3.c
22
// RUN: %clang_cc1 -std=c23 -emit-pch -o %t.2.ast %S/Inputs/enum4.c
3-
// RUN: not %clang_cc1 -std=c23 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
3+
// RUN: %clang_cc1 -std=c23 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
44

5-
// FIXME: this error should not happen!
6-
// CHECK: error: type 'struct __NSConstantString_tag' has an attribute which currently causes the types to be treated as though they are incompatible
75
// CHECK: enum3.c:2:6: warning: type 'enum E1' has incompatible definitions in different translation units
86
// CHECK: enum4.c:2:6: note: enumeration 'E1' missing fixed underlying type here
97
// CHECK: enum3.c:2:6: note: enumeration 'E1' has fixed underlying type here
@@ -12,5 +10,5 @@
1210
// CHECK: enum3.c:6:6: note: enumeration 'E2' missing fixed underlying type here
1311
// CHECK: enum3.c:11:6: warning: type 'enum E3' has incompatible definitions in different translation units
1412
// CHECK: enum3.c:11:6: note: enumeration 'E3' declared with incompatible fixed underlying types ('long' vs. 'short')
15-
// CHECK: 3 warnings and 1 error generated
13+
// CHECK: 3 warnings generated
1614

0 commit comments

Comments
 (0)