Skip to content

Commit

Permalink
[clang][Intepr] Fix the build
Browse files Browse the repository at this point in the history
The expected output was wrong.
  • Loading branch information
tbaederr committed Oct 7, 2023
1 parent c226d6c commit ce093d5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions clang/test/AST/Interp/c.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,11 @@ _Static_assert(!!1.0, ""); // pedantic-ref-warning {{not an integer constant exp
// pedantic-expected-warning {{not an integer constant expression}}
_Static_assert(!!1, "");

int a = (1 == 1 ? 5 : 3); // expected-note {{declared here}} \
// pedantic-expected-note {{declared here}}
int a = (1 == 1 ? 5 : 3);
_Static_assert(a == 5, ""); // ref-error {{not an integral constant expression}} \
// pedantic-ref-error {{not an integral constant expression}} \
// expected-error {{not an integral constant expression}} \
// expected-note {{read of non-const variable}} \
// pedantic-expected-error {{not an integral constant expression}} \
// pedantic-expected-note {{read of non-const variable}}
// pedantic-expected-error {{not an integral constant expression}}


const int b = 3;
Expand Down

0 comments on commit ce093d5

Please sign in to comment.