Changeset View
Changeset View
Standalone View
Standalone View
clang/test/CXX/module/module.reach/p4/M-C.cppm
- This file was added.
// RUN: rm -fr %t | |||||
// RUN: mkdir %t | |||||
// RUN: %clang_cc1 -std=c++20 %S/../Inputs/p4/M-A.cppm -emit-module-interface -o %t/M-A.pcm | |||||
// RUN: %clang_cc1 -std=c++20 -fprebuilt-module-path=%t -verify %s | |||||
module M:C; | |||||
import :A; // Since the compiler couldn't see the defintion of 'B' too, it couldn't | |||||
// give better diagnostic message. | |||||
B b1; // expected-error {{variable has incomplete type 'B'}} | |||||
// expected-note@../Inputs/p4/M-A.cppm:2 {{forward declaration of 'B'}} |