[cfe-commits] r83330 - /cfe/trunk/test/CodeGenCXX/attr.cpp
Mike Stump
mrs at apple.com
Mon Oct 5 15:24:47 PDT 2009
Author: mrs
Date: Mon Oct 5 17:24:47 2009
New Revision: 83330
URL: http://llvm.org/viewvc/llvm-project?rev=83330&view=rev
Log:
Testcase for recent checkin.
Added:
cfe/trunk/test/CodeGenCXX/attr.cpp
Added: cfe/trunk/test/CodeGenCXX/attr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/attr.cpp?rev=83330&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/attr.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/attr.cpp Mon Oct 5 17:24:47 2009
@@ -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:
More information about the cfe-commits
mailing list