diff options
author | Anders Carlsson <andersca@mac.com> | 2009-03-07 23:57:03 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-03-07 23:57:03 +0000 |
commit | 4ed74dd6b72ed29bc8f37ce23f8bdc852b1abe3f (patch) | |
tree | 35f103a9980ef98b80c60e623847140531e3b817 /clang/test/CodeGenCXX/mangle.cpp | |
parent | c808fc34b3b9a39df77dd7cb431cd9301c3bf536 (diff) | |
download | bcm5719-llvm-4ed74dd6b72ed29bc8f37ce23f8bdc852b1abe3f.tar.gz bcm5719-llvm-4ed74dd6b72ed29bc8f37ce23f8bdc852b1abe3f.zip |
Make mangling work with anonymous tag types. Doug, please review
llvm-svn: 66353
Diffstat (limited to 'clang/test/CodeGenCXX/mangle.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/mangle.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/mangle.cpp b/clang/test/CodeGenCXX/mangle.cpp index 7b92c85046f..1c98df590bc 100644 --- a/clang/test/CodeGenCXX/mangle.cpp +++ b/clang/test/CodeGenCXX/mangle.cpp @@ -1,9 +1,21 @@ -// RUN: clang -emit-llvm %s -o - | grep _ZplRK1YRA100_P1X +// RUN: clang -emit-llvm %s -o %t && // FIXME: This test is intentionally trivial, because we can't yet // CodeGen anything real in C++. struct X { }; struct Y { }; - + +// RUN: grep _ZplRK1YRA100_P1X %t | count 1 && bool operator+(const Y&, X* (&xs)[100]) { return false; } +// RUN: grep _Z1f1s %t | count 1 && +typedef struct { int a; } s; +void f(s) { } + +// RUN: grep _Z1f1e %t| count 1 && +typedef enum { foo } e; +void f(e) { } + +// RUN: grep _Z1f1u %t | count 1 +typedef union { int a; } u; +void f(u) { } |