2009-04-23 06:18:58 +08:00
|
|
|
// Test this without pch.
|
2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -include %S/nonvisible-external-defs.h -fsyntax-only -verify %s
|
2009-04-23 06:18:58 +08:00
|
|
|
|
|
|
|
// Test with pch.
|
2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -emit-pch -o %t %S/nonvisible-external-defs.h
|
|
|
|
// RUN: %clang_cc1 -include-pch %t -fsyntax-only -verify %s
|
2009-04-23 06:18:58 +08:00
|
|
|
|
|
|
|
int g(int, float); // expected-error{{conflicting types}}
|
|
|
|
|
2013-04-17 16:06:46 +08:00
|
|
|
// expected-note@nonvisible-external-defs.h:10{{previous declaration}}
|