]> granicus.if.org Git - clang/commitdiff
test/Modules/compiler_builtins.m: Appease Cygwin to add -D__need_wint_t.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 1 Feb 2012 14:09:19 +0000 (14:09 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 1 Feb 2012 14:09:19 +0000 (14:09 +0000)
On Cygwin, at first, <stddef.h> is included without __need_wint_t.
Next, <stddef.h> is included with __need_wint_t, though Modules feature would not process <stddef.h> twice.
Then, wint_t is not found in system headers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149500 91177308-0d34-0410-b5e6-96231b3b80d8

test/Modules/compiler_builtins.m

index 63d9f954e7895b2fdaaf61124660272d18c0ef10..5ec2e978b3e0580a326dd906f0b123279c4f3df1 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: rm -rf %t
-// RUN: %clang -fsyntax-only -fmodules -fmodule-cache-path %t %s -Xclang -verify
+// RUN: %clang -fsyntax-only -fmodules -fmodule-cache-path %t -D__need_wint_t %s -Xclang -verify
 
 @import _Builtin_stdlib.float_constants;