From 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sun, 18 Jan 2015 16:23:48 +0000 Subject: Vendor import of clang RELEASE_360/rc1 tag r226102 (effectively, 3.6.0 RC1): https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_360/rc1@226102 --- test/CodeGenCXX/crash.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/CodeGenCXX/crash.cpp') diff --git a/test/CodeGenCXX/crash.cpp b/test/CodeGenCXX/crash.cpp index 073542dd15b0..e1577a3abe37 100644 --- a/test/CodeGenCXX/crash.cpp +++ b/test/CodeGenCXX/crash.cpp @@ -1,4 +1,5 @@ // RUN: %clang_cc1 %s -std=c++11 -emit-llvm-only +// RUN: %clang_cc1 -emit-obj -o %t -gline-tables-only -std=c++11 %s // CHECK that we don't crash. // PR11676's example is ill-formed: @@ -33,3 +34,13 @@ template void finalizeDefaultAtomValues() { void f() { finalizeDefaultAtomValues(); } } + +namespace PR22096 { +template struct c { + c(); + template __attribute__((__always_inline__)) c(c) {} +}; +struct { + c v = c(); +} o; +} -- cgit v1.2.3