commit | 396b2a22788b0134018760d6a476de1e20f81334 | [log] [tgz] |
---|---|---|
author | Daniel Dunbar <daniel@zuster.org> | Mon Feb 16 23:37:57 2009 +0000 |
committer | Daniel Dunbar <daniel@zuster.org> | Mon Feb 16 23:37:57 2009 +0000 |
tree | 4f88501eb6d5e87c0c92ac24ca3b2ee8d928d2a2 | |
parent | f57c5b2ef767223f349be6adba9bf1b4f9d19283 [diff] [blame] |
Diagnose non-power-of-2 arguments to attribute aligned. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64700 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Sema/attr-aligned.c b/test/Sema/attr-aligned.c new file mode 100644 index 0000000..390e6d9 --- /dev/null +++ b/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}}