From: Anders Carlsson Date: Sun, 17 Apr 2011 23:33:40 +0000 (+0000) Subject: Put a typeid test in its own namespace. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a01693f9e05207a3ba6dfca49b457649979e3e2;p=clang 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 --- 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 +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; } + +}