diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-10-10 18:58:13 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-10-10 18:58:13 +0000 |
commit | 769562a382407436963501230f822358f29e7b13 (patch) | |
tree | 44d480ccfc2be40b7baf83bfaca6d7abf8de535c /clang/test/CodeGenCXX/predefined-expr-cxx14.cpp | |
parent | a586eb2c70feaa90c1028c12c7484790daba4c94 (diff) | |
download | bcm5719-llvm-769562a382407436963501230f822358f29e7b13.tar.gz bcm5719-llvm-769562a382407436963501230f822358f29e7b13.zip |
Bugfix for predefined expressions in dependent context.
This bug break compilation with precompiled headers and predefined expressions in dependent context.
llvm-svn: 219525
Diffstat (limited to 'clang/test/CodeGenCXX/predefined-expr-cxx14.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/predefined-expr-cxx14.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/predefined-expr-cxx14.cpp b/clang/test/CodeGenCXX/predefined-expr-cxx14.cpp index 62c86df294c..73b9295e128 100644 --- a/clang/test/CodeGenCXX/predefined-expr-cxx14.cpp +++ b/clang/test/CodeGenCXX/predefined-expr-cxx14.cpp @@ -1,4 +1,9 @@ // RUN: %clang_cc1 -std=c++14 %s -triple %itanium_abi_triple -fblocks -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 -x c++ -std=c++14 -triple %itanium_abi_triple -fblocks -emit-pch -o %t %s +// RUN: %clang_cc1 -x c++ -triple %itanium_abi_triple -std=c++14 -fblocks -include-pch %t %s -emit-llvm -o - | FileCheck %s + +#ifndef HEADER +#define HEADER // CHECK-DAG: @__func__._ZN13ClassTemplateIiE21classTemplateFunctionERi = private unnamed_addr constant [22 x i8] c"classTemplateFunction\00" // CHECK-DAG: @__PRETTY_FUNCTION__._ZN13ClassTemplateIiE21classTemplateFunctionERi = private unnamed_addr constant [69 x i8] c"const auto &ClassTemplate<int>::classTemplateFunction(T &) [T = int]\00" @@ -81,3 +86,5 @@ int main() { t.classTemplateFunction(a); return 0; } +#endif + |