xref: /aosp_15_r20/external/clang/test/Modules/pch-module-macro.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// RUN: rm -rf %t
2*67e74705SXin Li// RUN: %clang_cc1 -emit-pch -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -o %t.pch -I %S/Inputs -x objective-c-header %S/Inputs/pch-import-module-with-macro.pch
3*67e74705SXin Li// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -fsyntax-only -I %S/Inputs -include-pch %t.pch %s -verify
4*67e74705SXin Li// expected-no-diagnostics
5*67e74705SXin Li
6*67e74705SXin Liint test(int x) {
7*67e74705SXin Li  return my_fabs(x) + fabs(x);
8*67e74705SXin Li}
9*67e74705SXin Li
10