10 lines · c
1// RUN: %clang -fsyntax-only -Werror -xc %s2// RUN: %clang -fsyntax-only -Werror %s -xc %s3 4// RUN: %clang -fsyntax-only %s -xc++ -fsyntax-only 2>&1 | FileCheck %s5// RUN: %clang -fsyntax-only -xc %s -xc++ -fsyntax-only 2>&1 | FileCheck %s6// RUN: %clang -fsyntax-only %s -xc %s -xc++ -fsyntax-only 2>&1 | FileCheck %s7// CHECK: '-x c++' after last input file has no effect8 9// RUN: %clang_cl -fsyntax-only /WX -xc++ -- %s10