1 // RUN: %clang_cc1 %s -std=c++11 -emit-llvm-only
2 // RUN: %clang_cc1 -emit-obj -o %t -debug-info-kind=line-tables-only -std=c++11 %s
3 // RUN: %clang_cc1 -emit-obj -o %t -debug-info-kind=line-directives-only -std=c++11 %s
4 // CHECK that we don't crash.
6 // PR11676's example is ill-formed:
11 _XEvent pluginEvent = _XEvent();
15 // Example from PR11665:
17 union U
{ int field
; } u
= U();
23 string(const char *__s
);
24 string
&operator+=(const string
&__str
);
27 template <class ELFT
> void finalizeDefaultAtomValues() {
28 auto startEnd
= [&](const char * sym
)->void {
33 startEnd("preinit_array");
36 void f() { finalizeDefaultAtomValues
<int>(); }