https://github.com/googlewalt created https://github.com/llvm/llvm-project/pull/205108
Fixes 25e4057d49055a645dc6a51ae1f40ac647aaed5b. Use the -fsyntax-only flag instead of -c. This performs the necessary parsing and diagnostics verification (the actual intent of this test) without attempting to emit an object file. >From 60731340209e8f6703756464a78b43da7b5f43a9 Mon Sep 17 00:00:00 2001 From: Walter Lee <[email protected]> Date: Mon, 22 Jun 2026 13:46:37 +0000 Subject: [PATCH] Fix test on read-only file systems Fixes 25e4057d49055a645dc6a51ae1f40ac647aaed5b. Use the -fsyntax-only flag instead of -c. This performs the necessary parsing and diagnostics verification (the actual intent of this test) without attempting to emit an object file. --- clang/test/AST/ByteCode/command-line-options.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clang/test/AST/ByteCode/command-line-options.cpp b/clang/test/AST/ByteCode/command-line-options.cpp index e85b66f08d020..b64fc565e042a 100644 --- a/clang/test/AST/ByteCode/command-line-options.cpp +++ b/clang/test/AST/ByteCode/command-line-options.cpp @@ -6,11 +6,11 @@ /// All this should be true if the driver is used or -cc1. -// RUN: %clang -c -fexperimental-new-constant-interpreter %s -Xclang -verify=bc -// RUN: %clang -cc1 -fexperimental-new-constant-interpreter %s -verify=bc +// RUN: %clang -fsyntax-only -fexperimental-new-constant-interpreter %s -Xclang -verify=bc +// RUN: %clang -cc1 -fexperimental-new-constant-interpreter %s -verify=bc -// RUN: %clang -c -fno-experimental-new-constant-interpreter %s -Xclang -verify=nobc -// RUN: %clang -cc1 -fno-experimental-new-constant-interpreter %s -verify=nobc +// RUN: %clang -fsyntax-only -fno-experimental-new-constant-interpreter %s -Xclang -verify=nobc +// RUN: %clang -cc1 -fno-experimental-new-constant-interpreter %s -verify=nobc /// Note that we're not testing the behavior without those command line options since that _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
