diff options
author | Anders Carlsson <andersca@mac.com> | 2011-04-17 23:33:40 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-04-17 23:33:40 +0000 |
commit | 3a01693f9e05207a3ba6dfca49b457649979e3e2 (patch) | |
tree | ea753253688b21d181d52e65a9d0190f7e2e65e4 | |
parent | 421048698b6b6bf86754190bcfe98a0ed82ee5b5 (diff) |
Put a typeid test in its own namespace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129681 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGenCXX/typeid.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/CodeGenCXX/typeid.cpp b/test/CodeGenCXX/typeid.cpp index c2990586b5..1af96705ba 100644 --- a/test/CodeGenCXX/typeid.cpp +++ b/test/CodeGenCXX/typeid.cpp @@ -1,10 +1,12 @@ // RUN: %clang_cc1 -I%S %s -triple x86_64-apple-darwin10 -emit-llvm -fcxx-exceptions -fexceptions -o - | FileCheck %s #include <typeinfo> +namespace Test1 { + // PR7400 struct A { virtual void f(); }; -// CHECK: define i8* @_Z1fv +// CHECK: define i8* @_ZN5Test11fEv const char *f() { try { // CHECK: br i1 @@ -16,3 +18,5 @@ const char *f() { return 0; } + +} |