Richard Smith | 36ee9fb | 2014-08-11 23:30:23 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 +0000 | [diff] [blame] | 2 | |
| 3 | void f(...) { |
Richard Smith | 152a172 | 2015-02-23 21:16:05 +0000 | [diff] [blame] | 4 | int g(int(...)); // no warning, unambiguously a function declaration |
Cedric Venet | 08438133 | 2009-02-14 20:20:19 +0000 | [diff] [blame] | 5 | } |
Richard Smith | 36ee9fb | 2014-08-11 23:30:23 +0000 | [diff] [blame] | 6 | |
| 7 | void h(int n..., int m); // expected-error {{expected ')'}} expected-note {{to match}} |