| 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) { | ||||
| 5 | goto *x; // expected-error{{incompatible type}} | ||||
| 6 | goto *y; // expected-warning{{incompatible integer to pointer conversion}} | ||||
| 7 | } | ||||
| 8 | |||||