| // RUN: %clang_cc1 -std=c++20 %t/interface.cppm -emit-module-interface \ |
| // RUN: %clang_cc1 -std=c++20 %t/implementation.cpp -fmodule-file=m=%t/m.pcm \ |
| // RUN: -fsyntax-only -verify |
| // Test again with reduced BMI. |
| // RUN: %clang_cc1 -std=c++20 %t/interface.cppm -emit-reduced-module-interface \ |
| // RUN: %clang_cc1 -std=c++20 %t/implementation.cpp -fmodule-file=m=%t/m.pcm \ |
| // RUN: -fsyntax-only -verify |
| #pragma once // This breaks things. |
| const int kInvisibleSymbol = 0; |
| const int kSadlyUndeclaredSymbol = kInvisibleSymbol; |
| using unfortunately_still_invisible_struct = invisible_struct; |
| # error "Still not defined." |
| // expected-no-diagnostics |