xref: /aosp_15_r20/external/clang/test/Driver/clang-c-as-cxx.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clangxx -### %s 2>&1 | FileCheck %s
2 //
3 // PR5803
4 //
5 // CHECK: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
6 // CHECK: "-cc1" {{.*}} "-x" "c++"
7