brintos

brintos / llvm-project-archived public Read only

0
0
Text · 173 B · 6061c4c Raw
10 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s 2 3int f();4 5struct S 6{7  int a = f(); // ok8  int b = g(); // expected-error {{use of undeclared identifier 'g'}}9};10