Douglas Gregor | 21cae20 | 2011-09-12 23:31:24 +0000 | [diff] [blame] | 1 | // RUN: mkdir -p %t |
| 2 | // RUN: rm -f %t/Module.pcm |
Douglas Gregor | 1c7e047 | 2011-09-13 20:44:41 +0000 | [diff] [blame] | 3 | // RUN: %clang_cc1 -fmodule-cache-path %t -F %S/Inputs -DFOO -verify %s |
Douglas Gregor | 21cae20 | 2011-09-12 23:31:24 +0000 | [diff] [blame] | 4 | |
| 5 | __import_module__ Module; |
| 6 | void 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 | |