diff options
| author | Ben Langmuir <blangmuir@apple.com> | 2014-09-08 20:36:26 +0000 |
|---|---|---|
| committer | Ben Langmuir <blangmuir@apple.com> | 2014-09-08 20:36:26 +0000 |
| commit | 5f95c8fc5f3cc656d28c3049cf17b8aecd408b7b (patch) | |
| tree | 020a04d2a3a195c252622778661f7af947611499 /clang/test/Modules | |
| parent | 18f0a986c129c0d0cd4c038547a6bbb81a4803b7 (diff) | |
| download | bcm5719-llvm-5f95c8fc5f3cc656d28c3049cf17b8aecd408b7b.tar.gz bcm5719-llvm-5f95c8fc5f3cc656d28c3049cf17b8aecd408b7b.zip | |
Fix PCHs that import more than one module
We were passing < to std::unique, but it expects ==. Since the input is
sorted, we were always trimming it to one entry.
llvm-svn: 217402
Diffstat (limited to 'clang/test/Modules')
| -rw-r--r-- | clang/test/Modules/Inputs/pch-used.h | 1 | ||||
| -rw-r--r-- | clang/test/Modules/pch-used.m | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/pch-used.h b/clang/test/Modules/Inputs/pch-used.h index 60e0097ea90..bc53bb37a9d 100644 --- a/clang/test/Modules/Inputs/pch-used.h +++ b/clang/test/Modules/Inputs/pch-used.h @@ -1,2 +1,3 @@ @import cstd.stdio; +@import other_constants.dbl_max; static inline void SPXTrace() { fprintf(__stderrp, ""); } diff --git a/clang/test/Modules/pch-used.m b/clang/test/Modules/pch-used.m index 56961ba404c..74f21f5dac0 100644 --- a/clang/test/Modules/pch-used.m +++ b/clang/test/Modules/pch-used.m @@ -4,5 +4,6 @@ // RUN: %clang_cc1 %s -include-pch %t/pch-used.h.pch -fmodules -fmodules-cache-path=%t/cache -O0 -isystem %S/Inputs/System/usr/include -emit-llvm -o - | FileCheck %s void f() { SPXTrace(); } +void g() { double x = DBL_MAX; } // CHECK: define internal void @SPXTrace |

