summaryrefslogtreecommitdiffstats
path: root/test/Modules/pch-module-macro.m
blob: cc9f687374516dfa46438cd91d7ea44c25b406df (plain)
1
2
3
4
5
6
7
8
9
// RUN: rm -rf %t
// 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
// RUN: %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -fsyntax-only -I %S/Inputs -include-pch %t.pch %s -verify
// expected-no-diagnostics

int test(int x) {
  return my_fabs(x) + fabs(x);
}