[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / SemaCXX / PR20705.cpp
blob6b558b893d247400d73bf96db051f7dbaa7a95ee
1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
3 template <typename T>
4 struct X {};
5 auto b = []() {
6 struct S {
7 static typename X<decltype(int)>::type Run(){}; // expected-error {{expected '('}}
8 };
9 return 5;
10 }();
12 template <typename T1, typename T2>
13 class PC {
16 template <typename T>
17 class P {
18 static typename PC<T, Invalid>::Type Foo(); // expected-error {{undeclared identifier 'Invalid'}}