1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s 2 3 int f(); 4 5 struct S 6 { 7 int a = f(); // ok 8 int b = g(); // expected-error {{use of undeclared identifier 'g'}} 9 }; 10