[clang] c7ba568 - Fix test; we now expect a pedantic warning

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed May 11 03:53:14 PDT 2022


Author: Aaron Ballman
Date: 2022-05-11T06:52:21-04:00
New Revision: c7ba568f40b2d6cbae781223529f63063785b0cf

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

LOG: Fix test; we now expect a pedantic warning

This fixes:
https://lab.llvm.org/buildbot/#/builders/109/builds/38337

Added: 
    

Modified: 
    clang/test/SemaCUDA/noinline.cu

Removed: 
    


################################################################################
diff  --git a/clang/test/SemaCUDA/noinline.cu b/clang/test/SemaCUDA/noinline.cu
index bd963436c2138..ce4dfe35ceaa8 100644
--- a/clang/test/SemaCUDA/noinline.cu
+++ b/clang/test/SemaCUDA/noinline.cu
@@ -1,5 +1,5 @@
 // RUN: %clang_cc1 -fsyntax-only -verify=cuda %s
-// RUN: %clang_cc1 -fsyntax-only -verify=cuda -pedantic %s
+// RUN: %clang_cc1 -fsyntax-only -verify=pedantic -pedantic %s
 // RUN: %clang_cc1 -fsyntax-only -verify=cpp -x c++ %s
 
 // cuda-no-diagnostics
@@ -14,6 +14,6 @@ __attribute__((__noinline__)) void fun3() { }
 __noinline__ void fun5() {}
 
 #undef __noinline__
-#10 "cuda.h" 3
+#10 "cuda.h" 3 // pedantic-warning {{this style of line directive is a GNU extension}}
 #define __noinline__ __attribute__((__noinline__))
 __noinline__ void fun6() {}


        


More information about the cfe-commits mailing list