diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-08-15 22:30:50 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-08-15 22:30:50 +0000 |
| commit | 445af45c2972ee035d4d9601b8db01847f3e85ba (patch) | |
| tree | 559e38a9d7cc3d8f28d414129f8b2938e35437a4 | |
| parent | f7b4c5a295f19f39798c10e4804ef8c0ac99071d (diff) | |
| download | bcm5719-llvm-445af45c2972ee035d4d9601b8db01847f3e85ba.tar.gz bcm5719-llvm-445af45c2972ee035d4d9601b8db01847f3e85ba.zip | |
Add a simple test for temporaries.
llvm-svn: 79147
| -rw-r--r-- | clang/test/CodeGenCXX/temp-1.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/temp-1.cpp b/clang/test/CodeGenCXX/temp-1.cpp new file mode 100644 index 00000000000..11b83d333b7 --- /dev/null +++ b/clang/test/CodeGenCXX/temp-1.cpp @@ -0,0 +1,13 @@ +// RUN: clang-cc -emit-llvm %s -o %t -triple=x86_64-apple-darwin9 && +struct A { + A(); + ~A(); + void f(); +}; + +void f() { + // RUN: grep "call void @_ZN1AC1Ev" %t | count 2 && + // RUN: grep "call void @_ZN1AD1Ev" %t | count 2 + A(); + A().f(); +} |

