Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Eli Friedman | 3308382 | 2009-03-26 07:32:37 +0000 | [diff] [blame] | 2 | |
| 3 | struct c {int x;}; |
| 4 | int a(struct c x, long long y) { |
Chandler Carruth | 2877998 | 2010-01-31 10:26:25 +0000 | [diff] [blame] | 5 | void const* l1_ptr = &&l1; |
| 6 | goto *l1_ptr; |
| 7 | l1: |
Eli Friedman | 3308382 | 2009-03-26 07:32:37 +0000 | [diff] [blame] | 8 | goto *x; // expected-error{{incompatible type}} |
| 9 | goto *y; // expected-warning{{incompatible integer to pointer conversion}} |
| 10 | } |
| 11 | |