summaryrefslogtreecommitdiffstats
path: root/test/Modules/merge-enumerators.cpp
blob: 34a4ec9523fa2a6c5a4ca9333bd075fc3bffe725 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: echo 'namespace N { enum E { A }; }' > %t/a.h
// RUN: echo '#include "a.h"' > %t/b.h
// RUN: touch %t/x.h
// RUN: echo 'module B { module b { header "b.h" } module x { header "x.h" } }' > %t/b.modulemap
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t -x c++ -fmodule-map-file=%t/b.modulemap %s -I%t -verify
// expected-no-diagnostics
#include "a.h"
#include "x.h"
N::E e = N::A;
OpenPOWER on IntegriCloud