summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/debug-info-cxx0x.cpp
blob: 4c31f60c0d96526a6c9c4a94a6e4d7a67775c97b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %clang_cc1 -emit-llvm-only -std=c++11 -debug-info-kind=limited %s

namespace PR9414 {
  int f() {
    auto x = 0;
    return x;
  }
}

// Don't crash.
namespace PR13570 {
  template<typename T, typename U> struct P {};
  template<typename T> struct A {
    template<typename U> static P<T,U> isa(U);
    decltype(isa(int())) f() {}
  };
  template struct A<int>;
}