[clang] c5a80c2 - [Driver][test] fix cuda-simple.cu: -fsyntax-only -c => -c

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed May 17 00:19:00 PDT 2023


Author: Fangrui Song
Date: 2023-05-17T00:18:55-07:00
New Revision: c5a80c2128887f5509400909308fc39cc901aa61

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

LOG: [Driver][test] fix cuda-simple.cu: -fsyntax-only -c => -c

-fsyntax -c is supposed to lead to a -Wunused-command-line-argument
warning. There is currently no due to a gcov FIXME in
addPGOAndCoverageFlags.

Added: 
    

Modified: 
    clang/test/Driver/cuda-simple.cu

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/cuda-simple.cu b/clang/test/Driver/cuda-simple.cu
index cc5f6ea885f8..cdc1d5b7b9ad 100644
--- a/clang/test/Driver/cuda-simple.cu
+++ b/clang/test/Driver/cuda-simple.cu
@@ -1,7 +1,7 @@
 // Verify that we can parse a simple CUDA file with or without -save-temps
 // http://llvm.org/PR22936
 // RUN: %clang --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
-// RUN:        -nocudainc -nocudalib -Werror -fsyntax-only -c %s
+// RUN:        -nocudainc -nocudalib -Werror -fsyntax-only %s
 //
 // Verify that we pass -x cuda-cpp-output to compiler after
 // preprocessing a CUDA file


        


More information about the cfe-commits mailing list