[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaTemplate / recovery-tree-transform.cpp
blobbf882db3ec2cc9ae74f7501525dc655cecd0a03d
1 // RUN: %clang_cc1 -verify -frecovery-ast %s
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}}