Skip to content

Commit ce093d5

Browse files
committed
[clang][Intepr] Fix the build
The expected output was wrong.
1 parent c226d6c commit ce093d5

File tree

1 file changed

+2
-5
lines changed
  • clang/test/AST/Interp

1 file changed

+2
-5
lines changed

clang/test/AST/Interp/c.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@ _Static_assert(!!1.0, ""); // pedantic-ref-warning {{not an integer constant exp
1414
// pedantic-expected-warning {{not an integer constant expression}}
1515
_Static_assert(!!1, "");
1616

17-
int a = (1 == 1 ? 5 : 3); // expected-note {{declared here}} \
18-
// pedantic-expected-note {{declared here}}
17+
int a = (1 == 1 ? 5 : 3);
1918
_Static_assert(a == 5, ""); // ref-error {{not an integral constant expression}} \
2019
// pedantic-ref-error {{not an integral constant expression}} \
2120
// expected-error {{not an integral constant expression}} \
22-
// expected-note {{read of non-const variable}} \
23-
// pedantic-expected-error {{not an integral constant expression}} \
24-
// pedantic-expected-note {{read of non-const variable}}
21+
// pedantic-expected-error {{not an integral constant expression}}
2522

2623

2724
const int b = 3;

0 commit comments

Comments
 (0)