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