Douglas Gregor | 71129d5 | 2011-10-17 14:55:37 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs -DFOO_RETURNS_INT_PTR -verify %s |
| 3 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -F %S/Inputs -verify %s |
Andy Gibbs | c6e68da | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 4 | // expected-no-diagnostics |
Douglas Gregor | 71129d5 | 2011-10-17 14:55:37 +0000 | [diff] [blame] | 5 | |
Douglas Gregor | c50d492 | 2012-12-11 22:11:52 +0000 | [diff] [blame] | 6 | @import CmdLine; |
Douglas Gregor | 71129d5 | 2011-10-17 14:55:37 +0000 | [diff] [blame] | 7 | |
| 8 | void test() { |
| 9 | #ifdef FOO_RETURNS_INT_PTR |
| 10 | int *ip = foo(); |
| 11 | #else |
| 12 | float *fp = foo(); |
| 13 | #endif |
| 14 | } |