2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -emit-llvm-only -std=c++11 -debug-info-kind=limited %s
|
2011-03-07 00:43:04 +08:00
|
|
|
|
|
|
|
namespace PR9414 {
|
|
|
|
int f() {
|
|
|
|
auto x = 0;
|
|
|
|
return x;
|
|
|
|
}
|
|
|
|
}
|
2012-08-14 05:29:18 +08:00
|
|
|
|
|
|
|
// 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>;
|
|
|
|
}
|