diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-18 16:23:48 +0000 |
| commit | 06d4ba388873e6d1cfa9cd715a8935ecc8cd2097 (patch) | |
| tree | 3eb853da77d46cc77c4b017525a422f9ddb1385b /test/CodeGenCXX/crash.cpp | |
| parent | 30d791273d07fac9c0c1641a0731191bca6e8606 (diff) | |
Diffstat (limited to 'test/CodeGenCXX/crash.cpp')
| -rw-r--r-- | test/CodeGenCXX/crash.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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 <class ELFT> void finalizeDefaultAtomValues() { void f() { finalizeDefaultAtomValues<int>(); } } + +namespace PR22096 { +template <class> struct c { + c(); + template <class U> __attribute__((__always_inline__)) c(c<U>) {} +}; +struct { + c<double> v = c<int>(); +} o; +} |
