Fix test; we now expect a pedantic warning
authorAaron Ballman <aaron@aaronballman.com>
Wed, 11 May 2022 10:52:21 +0000 (06:52 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 11 May 2022 10:52:21 +0000 (06:52 -0400)
This fixes:
https://lab.llvm.org/buildbot/#/builders/109/builds/38337

clang/test/SemaCUDA/noinline.cu

index bd96343..ce4dfe3 100644 (file)
@@ -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() {}