[X86] Move getGFNICtrlMask before CTLZ/CTTZ lowering. NFC.
[llvm-project.git] / clang / test / SemaCXX / pr25181-crash-on-invalid.cpp
blob41178c95e8ad4d5d25673939aba5333d4a3f9b22
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2 // Don't crash (PR25181).
4 template <typename T> class Foo { // expected-note {{template parameter is declared here}}
5 template <typename T> // expected-error {{declaration of 'T' shadows template parameter}}
6 void Foo<T>::method(T *) const throw() {} // expected-error {{nested name specifier 'Foo<T>::' for declaration does not refer into a class, class template or class template partial specialization}}
7 };