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 // expected-error@a.h:1 {{redefinition of 'yyy'}}
7 // expected-note@a.h:1 {{unguarded header; consider using #ifdef guards or #pragma once}}
8 // expected-note-re@redefinition-same-header.c:11 {{'{{.*}}a.h' included multiple times, additional include site here}}
9 // expected-note-re@redefinition-same-header.c:12 {{'{{.*}}a.h' included multiple times, additional include site here}}
10
11 #include "a.h"
12 #include "a.h"
13
foo()14 int foo() { return yyy; }
15