[cfe-commits] r129681 - /cfe/trunk/test/CodeGenCXX/typeid.cpp
Anders Carlsson
andersca at mac.com
Sun Apr 17 16:33:40 PDT 2011
Author: andersca
Date: Sun Apr 17 18:33:40 2011
New Revision: 129681
URL: http://llvm.org/viewvc/llvm-project?rev=129681&view=rev
Log:
Put a typeid test in its own namespace.
Modified:
cfe/trunk/test/CodeGenCXX/typeid.cpp
Modified: cfe/trunk/test/CodeGenCXX/typeid.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/typeid.cpp?rev=129681&r1=129680&r2=129681&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/typeid.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/typeid.cpp Sun Apr 17 18:33:40 2011
@@ -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 @@
return 0;
}
+
+}
More information about the cfe-commits
mailing list