xref: /aosp_15_r20/external/clang/test/CodeGenCXX/debug-info-cxx0x.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -emit-llvm-only -std=c++11 -debug-info-kind=limited %s
2 
3 namespace PR9414 {
f()4   int f() {
5     auto x = 0;
6     return x;
7   }
8 }
9 
10 // Don't crash.
11 namespace PR13570 {
12   template<typename T, typename U> struct P {};
13   template<typename T> struct A {
14     template<typename U> static P<T,U> isa(U);
isaPR13570::A15     decltype(isa(int())) f() {}
16   };
17   template struct A<int>;
18 }
19