Richard Smith | 9ca5c42 | 2011-10-13 22:29:44 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s |
Richard Smith | 938f40b | 2011-06-11 17:19:42 +0000 | [diff] [blame] | 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 | }; |