blob: 42b8533a9ae6e74253003305687d689eaec8d01c [file] [log] [blame]
Douglas Gregor21cae202011-09-12 23:31:24 +00001// RUN: mkdir -p %t
2// RUN: rm -f %t/Module.pcm
Douglas Gregor1c7e0472011-09-13 20:44:41 +00003// RUN: %clang_cc1 -fmodule-cache-path %t -F %S/Inputs -DFOO -verify %s
Douglas Gregor21cae202011-09-12 23:31:24 +00004
5__import_module__ Module;
6void test_getModuleVersion() {
7 int version = getModuleVersion(); // expected-warning{{incompatible pointer to integer conversion initializing 'int' with an expression of type 'const char *'}}
8 int version2 = [Module version]; // expected-warning{{incompatible pointer to integer conversion initializing 'int' with an expression of type 'const char *'}}
9}
10
11