1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc struct c {int x;};
a(struct c x,long long y)4*f4a2713aSLionel Sambuc int a(struct c x, long long y) {
5*f4a2713aSLionel Sambuc   void const* l1_ptr = &&l1;
6*f4a2713aSLionel Sambuc   goto *l1_ptr;
7*f4a2713aSLionel Sambuc l1:
8*f4a2713aSLionel Sambuc   goto *x; // expected-error{{incompatible type}}
9*f4a2713aSLionel Sambuc   goto *y; // expected-warning{{incompatible integer to pointer conversion}}
10*f4a2713aSLionel Sambuc }
11*f4a2713aSLionel Sambuc 
12