blob: 4c1c6c328a18ff74eb5f501a4378d942615b09ff [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Eli Friedman33083822009-03-26 07:32:37 +00002
3struct c {int x;};
4int a(struct c x, long long y) {
Chandler Carruth28779982010-01-31 10:26:25 +00005 void const* l1_ptr = &&l1;
6 goto *l1_ptr;
7l1:
Eli Friedman33083822009-03-26 07:32:37 +00008 goto *x; // expected-error{{incompatible type}}
9 goto *y; // expected-warning{{incompatible integer to pointer conversion}}
10}
11