diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-10-10 21:34:32 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-10-10 21:34:32 +0000 |
commit | f638ec612bbf3a88c2e3f5c5bbb05557b6aa640e (patch) | |
tree | bd2fc50b3194f838a51656f8191b7ebd99fb401e /test | |
parent | 726918e196b413bcd80f08494c061fd6b3f26c94 (diff) | |
download | clang-f638ec612bbf3a88c2e3f5c5bbb05557b6aa640e.tar.gz |
Revert 374450 "Fix __builtin_assume_aligned with too large values."
The test fails on Windows, with
error: 'warning' diagnostics expected but not seen:
File builtin-assume-aligned.c Line 62: requested alignment
must be 268435456 bytes or smaller; assumption ignored
error: 'warning' diagnostics seen but not expected:
File builtin-assume-aligned.c Line 62: requested alignment
must be 8192 bytes or smaller; assumption ignored
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@374456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Sema/builtin-assume-aligned.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/Sema/builtin-assume-aligned.c b/test/Sema/builtin-assume-aligned.c index a669ed172d..057a500b32 100644 --- a/test/Sema/builtin-assume-aligned.c +++ b/test/Sema/builtin-assume-aligned.c @@ -58,7 +58,3 @@ void *test_no_fn_proto() __attribute__((assume_aligned)); // expected-error {{'a void *test_no_fn_proto() __attribute__((assume_aligned())); // expected-error {{'assume_aligned' attribute takes at least 1 argument}} void *test_no_fn_proto() __attribute__((assume_aligned(32, 45, 37))); // expected-error {{'assume_aligned' attribute takes no more than 2 arguments}} -int pr43638(int *a) { - a = __builtin_assume_aligned(a, 4294967296); // expected-warning {{requested alignment must be 268435456 bytes or smaller; assumption ignored}} -return a[0]; -} |