Skip to content

Commit

Permalink
[clang][Interp] Only use __int128 in test case if supported
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Feb 9, 2024
1 parent a0635ed commit fdb16e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang/test/AST/Interp/c.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,6 @@ _Static_assert(sizeof(name2) == 0, ""); // expected-error {{failed}} \
// pedantic-expected-error {{failed}} \
// pedantic-expected-note {{evaluates to}}

#ifdef __SIZEOF_INT128__
void *PR28739d = &(&PR28739d)[(__int128)(unsigned long)-1]; // all-warning {{refers past the last possible element}}
#endif

0 comments on commit fdb16e6

Please sign in to comment.