aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/on-demand-build.m
blob: d0557ebbee6500ee056163cf6e980a8577040cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: rm -rf %t
// RUN: %clang_cc1 -fmodule-cache-path %t -F %S/Inputs -DFOO -verify %s
// RUN: %clang_cc1 -x objective-c++ -fmodule-cache-path %t -F %S/Inputs -DFOO -verify %s
// RUN: %clang_cc1 -fmodule-cache-path %t -F %S/Inputs -DFOO -verify %s

__import_module__ Module;
void test_getModuleVersion() {
  const char *version = getModuleVersion();
  const char *version2 = [Module version];
}