summaryrefslogtreecommitdiffstats
path: root/test/Modules/anon-redecl.cpp
blob: c3c5c9e527e47da5af9c0b9ee527764adbb5c55a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -fmodules-local-submodule-visibility \
// RUN:            -fmodule-map-file=%S/Inputs/anon-redecl/module.modulemap \
// RUN:            -I%S/Inputs/anon-redecl \
// RUN:            -verify -std=c++11 %s

#include "a.h"
#include "b.h"
#include "c1.h"
#include "c2.h"

// expected-no-diagnostics
int x = a({});
int y = b({});
int z = c({});