[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / gnumode-non-benign.cpp
blob9255dfe24b110917fd52cd41a4281d430dd133de
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -std=c++11 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I%S/Inputs/gnumode-non-benign -verify %s
4 // expected-no-diagnostics
6 // This test ensures that submodules have the same GNUMode language option
7 // setting as the main clang invocation.
8 // Note that we set GNUMode = 0 with -std=c++11 for this file.
10 // This module fails to compile with GNUMode = 1.
11 #include "module.h"