diff options
| author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-07-13 21:58:55 +0000 | 
|---|---|---|
| committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2011-07-13 21:58:55 +0000 | 
| commit | 98154a76fd5e5427410cd1f8690e34f7a9c02a61 (patch) | |
| tree | f964eb278402f7c591adf8c9a44e304924f80a5b /clang/test | |
| parent | ad69e65a3943824644c4d2e53ebccc9cd2a2e6c5 (diff) | |
| download | bcm5719-llvm-98154a76fd5e5427410cd1f8690e34f7a9c02a61.tar.gz bcm5719-llvm-98154a76fd5e5427410cd1f8690e34f7a9c02a61.zip  | |
Reapply r134946 with fixes. Tested on Benjamin testcase and other test-suite failures.
llvm-svn: 135091
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/CodeGen/x86_64-arguments.c | 4 | ||||
| -rw-r--r-- | clang/test/CodeGenCXX/x86_64-arguments.cpp | 15 | 
2 files changed, 17 insertions, 2 deletions
diff --git a/clang/test/CodeGen/x86_64-arguments.c b/clang/test/CodeGen/x86_64-arguments.c index d256748b8f3..221c7d38a73 100644 --- a/clang/test/CodeGen/x86_64-arguments.c +++ b/clang/test/CodeGen/x86_64-arguments.c @@ -280,7 +280,7 @@ void f39() { f38(x38); f37(x37); }  // The two next tests make sure that the struct below is passed  // in the same way regardless of avx being used -// TOBECHECKED: declare void @func40(%struct.t128* byval align 16) +// CHECK: declare void @func40(%struct.t128* byval align 16)  typedef float __m128 __attribute__ ((__vector_size__ (16)));  typedef struct t128 {    __m128 m; @@ -292,7 +292,7 @@ void func41(two128 s) {    func40(s);  } -// TOBECHECKED: declare void @func42(%struct.t128_2* byval align 16) +// CHECK: declare void @func42(%struct.t128_2* byval align 16)  typedef struct xxx {    __m128 array[2];  } Atwo128; diff --git a/clang/test/CodeGenCXX/x86_64-arguments.cpp b/clang/test/CodeGenCXX/x86_64-arguments.cpp index 6d3748ca7d9..e1d9dfc1fc3 100644 --- a/clang/test/CodeGenCXX/x86_64-arguments.cpp +++ b/clang/test/CodeGenCXX/x86_64-arguments.cpp @@ -134,3 +134,18 @@ namespace test7 {    // CHECK: define void @_ZN5test71zENS_1AES0_S0_S0_S0_NS_12StringDoubleE({{.*}} byval align 8)    // CHECK: define void @_ZN5test72zzENS_1AES0_S0_S0_NS_12StringDoubleE({{.*}} i8*  } + +namespace test8 { +  // CHECK: declare void @_ZN5test83fooENS_1BE(%"class.test8::B"* byval align 8) +  class A { +   char big[17]; +  }; + +  class B : public A {}; + +  void foo(B b); +  void bar() { +   B b; +   foo(b); +  } +}  | 

