commit | ea285162342df160e7860e26528bc7110bc6c0cd | [log] [tgz] |
---|---|---|
author | Shih-wei Liao <sliao@google.com> | Fri Jun 04 12:34:56 2010 -0700 |
committer | Shih-wei Liao <sliao@google.com> | Fri Jun 04 12:34:56 2010 -0700 |
tree | 9e35635a40a85005cd24c1d30f017a45bc3a80d8 | |
parent | e6c39d3a3e77c17bb9aa97be6e2e1ae2dbd654db [diff] [blame] |
Initial slang. Change-Id: I4f84a741e5fbc440cd4c251406d2b611a237f713
diff --git a/test/CodeGen/alignof.c b/test/CodeGen/alignof.c new file mode 100644 index 0000000..64d0c08 --- /dev/null +++ b/test/CodeGen/alignof.c
@@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -triple i386-unknown-unknown -O1 -emit-llvm -o %t %s +// RUN: grep 'ret i32 4' %t + +enum e0 { E0 }; +struct s0 { + enum e0 a:31; +}; + +struct s0 t1_tmp; +int f0() { + return __alignof__(t1_tmp); +}