1 // RUN: rm -rf %t
2 // RUN: mkdir -p %t
3 // RUN: echo 'int yyy = 42;' > %t/a.h
4 // RUN: %clang_cc1 -fsyntax-only %s -I%t  -verify
5 
6 // [email protected]:1 {{redefinition of 'yyy'}}
7 // [email protected]:1 {{unguarded header; consider using #ifdef guards or #pragma once}}
8 // [email protected]:11 {{'{{.*}}a.h' included multiple times, additional include site here}}
9 // [email protected]:12 {{'{{.*}}a.h' included multiple times, additional include site here}}
10 
11 #include "a.h"
12 #include "a.h"
13 
foo(void)14 int foo(void) { return yyy; }
15