summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-10-05 22:24:47 +0000
committerMike Stump <mrs@apple.com>2009-10-05 22:24:47 +0000
commitf6ab1f0a4d89366b3a587e0c501fb358fc11f3c9 (patch)
tree23bcd1e9f6d0160328ce691345c2aa7e1c113345 /clang
parentc5e153c50e510dabdf4d7b1c83cba48fb4e40bdf (diff)
downloadbcm5719-llvm-f6ab1f0a4d89366b3a587e0c501fb358fc11f3c9.tar.gz
bcm5719-llvm-f6ab1f0a4d89366b3a587e0c501fb358fc11f3c9.zip
Testcase for recent checkin.
llvm-svn: 83330
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGenCXX/attr.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/attr.cpp b/clang/test/CodeGenCXX/attr.cpp
new file mode 100644
index 00000000000..57507d87b33
--- /dev/null
+++ b/clang/test/CodeGenCXX/attr.cpp
@@ -0,0 +1,28 @@
+// RUN: clang-cc -triple x86_64-apple-darwin -O0 -S %s -o %t.s &&
+// RUN: FileCheck --input-file=%t.s %s
+
+int foo() __attribute__((aligned(1024)));
+int foo() { }
+
+// CHECK:.align 10, 0x90
+// CHECK:.globl __Z3foov
+// CHECK:__Z3foov:
+
+
+class C {
+ virtual void bar1() __attribute__((aligned(2)));
+ virtual void bar2() __attribute__((aligned(1024)));
+} c;
+
+void C::bar1() { }
+
+// CHECK:.align 1, 0x90
+// CHECK-NEXT:.globl __ZN1C4bar1Ev
+// CHECK-NEXT:__ZN1C4bar1Ev:
+
+
+void C::bar2() { }
+
+// CHECK:.align 10, 0x90
+// CHECK-NEXT:.globl __ZN1C4bar2Ev
+// CHECK-NEXT:__ZN1C4bar2Ev:
OpenPOWER on IntegriCloud