blob: c0fad95e468ccbe14755746c64594fbac61c0db7 [file] [log] [blame]
Richard Smith36ee9fb2014-08-11 23:30:23 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Cedric Venet084381332009-02-14 20:20:19 +00002
3void f(...) {
Richard Smith152a1722015-02-23 21:16:05 +00004 int g(int(...)); // no warning, unambiguously a function declaration
Cedric Venet084381332009-02-14 20:20:19 +00005}
Richard Smith36ee9fb2014-08-11 23:30:23 +00006
7void h(int n..., int m); // expected-error {{expected ')'}} expected-note {{to match}}