Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -verify -fsyntax-only |
Eli Friedman | da15323 | 2009-02-20 01:34:21 +0000 | [diff] [blame] | 2 | |
3 | int a; | ||||
John McCall | 73061d0 | 2010-03-19 07:56:44 +0000 | [diff] [blame] | 4 | struct {int x;} x = a; // expected-error {{incompatible type initializing 'int', expected 'struct <anonymous}} |