Skip to content

Commit

Permalink
Add test coverage for -Wunknown-directives; NFC
Browse files Browse the repository at this point in the history
While working on #embed, I noticed that the PR accidentally broke the
warning group but no tests failed as a result. This is adding the
missing test coverage.
  • Loading branch information
AaronBallman committed Nov 30, 2023
1 parent 07c18a0 commit 1d05b21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang/test/Preprocessor/suggest-typoed-directive.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
// RUN: %clang_cc1 -fsyntax-only -verify=pre-c2x-cpp23 %s
// RUN: %clang_cc1 -fsyntax-only -Wno-unknown-directives -verify=okay %s
// RUN: %clang_cc1 -std=c2x -fsyntax-only -verify=c2x-cpp23 %s
// RUN: %clang_cc1 -x c++ -std=c++23 -fsyntax-only -verify=c2x-cpp23 %s
// RUN: %clang_cc1 -x c++ -std=c++23 -fsyntax-only %s -fdiagnostics-parseable-fixits 2>&1 | FileCheck %s
// okay-no-diagnostics

// id: pre-c2x-cpp23-warning@+12 {{invalid preprocessing directive, did you mean '#if'?}}
// ifd: pre-c2x-cpp23-warning@+12 {{invalid preprocessing directive, did you mean '#if'?}}
Expand Down

0 comments on commit 1d05b21

Please sign in to comment.