Mercurial > hg > CbC > CbC_llvm
comparison clang/test/PCH/cxx1y-init-captures.cpp @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | 79ff65ed7e25 |
children |
comparison
equal
deleted
inserted
replaced
237:c80f45b162ad | 252:1f2b6ac9f198 |
---|---|
23 int y = counter(); | 23 int y = counter(); |
24 | 24 |
25 void g() { | 25 void g() { |
26 f(0); // ok | 26 f(0); // ok |
27 // expected-error@18 {{lvalue of type 'const char *const'}} | 27 // expected-error@18 {{lvalue of type 'const char *const'}} |
28 // expected-note@18 {{substituting into a lambda}} | |
28 f("foo"); // expected-note {{here}} | 29 f("foo"); // expected-note {{here}} |
29 } | 30 } |
30 | 31 |
31 #endif | 32 #endif |