1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -std=c99 -pedantic -W -verify %s 2*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -x c++ -std=c++03 -pedantic-errors -W %s 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc #include "completely-empty-header-file.h" 5*f4a2713aSLionel Sambuc // no-warning -- an empty file is OK 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambuc #define A_MACRO_IS_NOT_GOOD_ENOUGH 1 8*f4a2713aSLionel Sambuc 9*f4a2713aSLionel Sambuc // In C we should get this warning, but in C++ we shouldn't. 10*f4a2713aSLionel Sambuc // expected-warning{{ISO C requires a translation unit to contain at least one declaration}} 11