xref: /llvm-project/clang/test/Driver/clang-c-as-cxx.c (revision 5c29ffda9056e1b4602a46051371f0184ce357b2)
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