Skip to content

Commit fdb16e6

Browse files
committed
[clang][Interp] Only use __int128 in test case if supported
1 parent a0635ed commit fdb16e6

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

clang/test/AST/Interp/c.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,6 @@ _Static_assert(sizeof(name2) == 0, ""); // expected-error {{failed}} \
109109
// pedantic-expected-error {{failed}} \
110110
// pedantic-expected-note {{evaluates to}}
111111

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

0 commit comments

Comments
 (0)