You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
373 B
19 lines
373 B
4 months ago
|
// 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>;
|
||
|
}
|