You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clang/test/Sema/code_align.c
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -75,19 +75,23 @@ void foo1(int A)
75
75
[[clang::code_align(9223372036854775808)]]
76
76
for(intI=0; I<256; ++I) { bar(I); }
77
77
78
+
#ifdef__SIZEOF_INT128__
78
79
// expected-error@+1{{'code_align' attribute requires an integer argument which is a constant power of two between 1 and 4096 inclusive; provided argument was (__int128_t)1311768467294899680ULL << 64}}
// expected-error@+1 {{'code_align' attribute requires an integer argument which is a constant power of two between 1 and 4096 inclusive; provided argument was -922337203685477}}
83
85
[[clang::code_align(-922337203685477)]]
84
86
for(intI=0; I<256; ++I) { bar(I); }
85
87
88
+
#ifdef__SIZEOF_INT128__
86
89
// cpp-local-error@+3{{expression is not an integral constant expression}}
87
90
// cpp-local-note@+2{{left shift of negative value -1311768467294899680}}
88
91
// c-local-error@+1{{'code_align' attribute requires an integer argument which is a constant power of two between 1 and 4096 inclusive; provided argument was -(__int128_t)1311768467294899680ULL << 64}}
0 commit comments