diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-02-16 23:37:57 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-16 23:37:57 +0000 |
| commit | 6e8c07d0eab9e33d8794c9f2057af93438cdd0c7 (patch) | |
| tree | 172fa9d944e8a5d260e60f0299e3134018340df8 /clang/test/Sema/attr-aligned.c | |
| parent | 2a4553ba5fa51659a79f1fec7a3797c8cfc51782 (diff) | |
| download | bcm5719-llvm-6e8c07d0eab9e33d8794c9f2057af93438cdd0c7.tar.gz bcm5719-llvm-6e8c07d0eab9e33d8794c9f2057af93438cdd0c7.zip | |
Diagnose non-power-of-2 arguments to attribute aligned.
llvm-svn: 64700
Diffstat (limited to 'clang/test/Sema/attr-aligned.c')
| -rw-r--r-- | clang/test/Sema/attr-aligned.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/attr-aligned.c b/clang/test/Sema/attr-aligned.c new file mode 100644 index 00000000000..390e6d9df45 --- /dev/null +++ b/clang/test/Sema/attr-aligned.c @@ -0,0 +1,3 @@ +// RUN: clang -fsyntax-only -verify %s + +int x __attribute__((aligned(3))); // expected-error {{requested alignment is not a power of 2}} |

