fix clang/PCH/delayed-pch-instantiate test
authorLuboš Luňák <l.lunak@centrum.cz>
Sun, 21 Jun 2020 16:59:51 +0000 (18:59 +0200)
committerLuboš Luňák <l.lunak@centrum.cz>
Sun, 21 Jun 2020 17:00:42 +0000 (19:00 +0200)
-target must match between PCH creation and use.

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

index cf7a9f2..d340b3b 100644 (file)
@@ -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