diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2009-12-01 11:08:04 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2009-12-01 11:08:04 +0000 |
commit | 4b08eb6308ca90a6c08e2fc79d100821b1b1f6aa (patch) | |
tree | 867cbbe32a66fd7d62dd9ce9df23a23fefdb8290 /test/CodeGenCXX/temp-1.cpp | |
parent | 6df2408694f81a03eb8b0e3b013272042233c061 (diff) | |
download | FreeBSD-src-4b08eb6308ca90a6c08e2fc79d100821b1b1f6aa.zip FreeBSD-src-4b08eb6308ca90a6c08e2fc79d100821b1b1f6aa.tar.gz |
Update clang to r90226.
Diffstat (limited to 'test/CodeGenCXX/temp-1.cpp')
-rw-r--r-- | test/CodeGenCXX/temp-1.cpp | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/test/CodeGenCXX/temp-1.cpp b/test/CodeGenCXX/temp-1.cpp deleted file mode 100644 index 9b97f00..0000000 --- a/test/CodeGenCXX/temp-1.cpp +++ /dev/null @@ -1,83 +0,0 @@ -// RUN: clang-cc -emit-llvm %s -o %t -triple=x86_64-apple-darwin9 && -struct A { - A(); - ~A(); - void f(); -}; - -// RUN: grep "call void @_ZN1AC1Ev" %t | count 2 && -// RUN: grep "call void @_ZN1AD1Ev" %t | count 2 && -void f1() { - (void)A(); - A().f(); -} - -// Function calls -struct B { - B(); - ~B(); -}; - -B g(); - -// RUN: grep "call void @_ZN1BC1Ev" %t | count 0 && -// RUN: grep "call void @_ZN1BD1Ev" %t | count 1 && -void f2() { - (void)g(); -} - -// Member function calls -struct C { - C(); - ~C(); - - C f(); -}; - -// RUN: grep "call void @_ZN1CC1Ev" %t | count 1 && -// RUN: grep "call void @_ZN1CD1Ev" %t | count 2 && -void f3() { - C().f(); -} - -// Function call operator -struct D { - D(); - ~D(); - - D operator()(); -}; - -// RUN: grep "call void @_ZN1DC1Ev" %t | count 1 && -// RUN: grep "call void @_ZN1DD1Ev" %t | count 2 && -void f4() { - D()(); -} - -// Overloaded operators -struct E { - E(); - ~E(); - E operator+(const E&); - E operator!(); -}; - -// RUN: grep "call void @_ZN1EC1Ev" %t | count 3 && -// RUN: grep "call void @_ZN1ED1Ev" %t | count 5 && -void f5() { - E() + E(); - !E(); -} - -struct F { - F(); - ~F(); - F& f(); -}; - -// RUN: grep "call void @_ZN1FC1Ev" %t | count 1 && -// RUN: grep "call void @_ZN1FD1Ev" %t | count 1 -void f6() { - F().f(); -} - |