From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/CodeGenCXX/debug-info.cpp | 69 ++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 clang/test/CodeGenCXX/debug-info.cpp (limited to 'clang/test/CodeGenCXX/debug-info.cpp') diff --git a/clang/test/CodeGenCXX/debug-info.cpp b/clang/test/CodeGenCXX/debug-info.cpp new file mode 100644 index 0000000..33b5278 --- /dev/null +++ b/clang/test/CodeGenCXX/debug-info.cpp @@ -0,0 +1,69 @@ +// RUN: %clang_cc1 -emit-llvm-only -g %s +template struct Identity { + typedef T Type; +}; + +void f(Identity::Type a) {} +void f(Identity a) {} +void f(int& a) { } + +template struct A { + A *next; +}; +void f(A) { } + +struct B { }; + +void f() { + int B::*a = 0; + void (B::*b)() = 0; +} + +namespace EmptyNameCrash { + struct A { A(); }; + typedef struct { A x; } B; + B x; +} + +// PR4890 +namespace PR4890 { + struct X { + ~X(); + }; + + X::~X() { } +} + +namespace VirtualDtor { + struct Y { + virtual ~Y(); + }; + + Y::~Y() { } +} + +namespace VirtualBase { + struct A { }; + struct B : virtual A { }; + + void f() { + B b; + } +} + +void foo() { + const wchar_t c = L'x'; + wchar_t d = c; +} + +namespace b5249287 { +template class A { + struct B; +}; + +class Cls { + template friend class A::B; +}; + +Cls obj; +} -- cgit v1.2.3