[clang] 448bbc5 - fix clang/PCH/delayed-pch-instantiate test

Luboš Luňák via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 21 10:01:02 PDT 2020


Author: Luboš Luňák
Date: 2020-06-21T19:00:42+02:00
New Revision: 448bbc512f456df6fc817b0d7041897eea2375b7

URL: https://github.com/llvm/llvm-project/commit/448bbc512f456df6fc817b0d7041897eea2375b7
DIFF: https://github.com/llvm/llvm-project/commit/448bbc512f456df6fc817b0d7041897eea2375b7.diff

LOG: fix clang/PCH/delayed-pch-instantiate test

-target must match between PCH creation and use.

Added: 
    

Modified: 
    clang/test/PCH/delayed-pch-instantiate.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/PCH/delayed-pch-instantiate.cpp b/clang/test/PCH/delayed-pch-instantiate.cpp
index cf7a9f2d4a86..d340b3b8b25d 100644
--- a/clang/test/PCH/delayed-pch-instantiate.cpp
+++ b/clang/test/PCH/delayed-pch-instantiate.cpp
@@ -2,10 +2,10 @@
 // RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -DBODY %s -o - | FileCheck %s
 
 // Test with pch.
-// RUN: %clang_cc1 -emit-pch -o %t %s
+// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-pch -o %t %s
 // RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -include-pch %t -DBODY %s -o - | FileCheck %s
 
-// RUN: %clang_cc1 -emit-pch -fpch-instantiate-templates -o %t %s
+// RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-pch -fpch-instantiate-templates -o %t %s
 // RUN: %clang_cc1 -triple x86_64-linux-gnu -emit-llvm -include-pch %t -DBODY %s -o - | FileCheck %s
 
 // expected-no-diagnostics


        


More information about the cfe-commits mailing list