diff options
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 073542d..e1577a3 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; +} |