1 // Test that we will skip ODR checks for declarations from PCH if they
6 // RUN: split-file %s %t
8 // RUN: %clang_cc1 -std=c++20 -emit-reduced-module-interface %t/A.cppm \
9 // RUN: -o %t/A.pcm -fskip-odr-check-in-gmf
10 // RUN: %clang_cc1 -std=c++20 -DDIFF -x c++-header %t/foo.h \
11 // RUN: -emit-pch -o %t/foo.pch -fskip-odr-check-in-gmf
12 // RUN: %clang_cc1 -std=c++20 %t/B.cppm -fmodule-file=A=%t/A.pcm -include-pch \
13 // RUN: %t/foo.pch -verify -fsyntax-only -fskip-odr-check-in-gmf
46 // expected-no-diagnostics
51 export int b = foo() + f().mem();