aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Modules/GH155028-1.cpp
blob: d60112b48c218ead4f27d2b359b471127efa0c31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -std=c++20 -verify %s
// expected-no-diagnostics

#pragma clang module build M
module "M" {
  module "A" {}
  module "B" {}
}
#pragma clang module contents
#pragma clang module begin M.A
enum E1 {};
#pragma clang module end
#pragma clang module begin M.B
enum E1 {};
using T = __underlying_type(E1);
#pragma clang module end
#pragma clang module endbuild