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