Fix test; we now expect a pedantic warning

This fixes:
https://lab.llvm.org/buildbot/#/builders/109/builds/38337
This commit is contained in:
Aaron Ballman 2022-05-11 06:52:21 -04:00
parent 786c721c2b
commit c7ba568f40
1 changed files with 2 additions and 2 deletions

View 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() {}