xref: /llvm-project/clang/test/SemaTemplate/recovery-tree-transform.cpp (revision 733edf9750a4893d5f50329ad68b3901935303a9)
1 // RUN: %clang_cc1 -verify -frecovery-ast %s
2 
3 template<typename T> int *p = &void(T::error); // expected-error{{cannot take the address of an rvalue}} expected-error{{type 'int' cannot be used prior to '::'}}
4 int *q = p<int>; // expected-note{{in instantiation of variable template specialization 'p<int>' requested here}}
5