1 // RUN: %clang_cc1 -std=c++14 %s -fdiagnostics-parseable-fixits %s 2>&1 | FileCheck %s
2 // Ensure no warnings are emitted in c++17.
3 // RUN: %clang_cc1 -std=c++17 %s -verify=cxx17
4 // RUN: %clang_cc1 -std=c++14 %s -fixit-recompile -fixit-to-temporary -Werror
6 // cxx17-no-diagnostics
8 static_assert(true && "String");
9 // CHECK-DAG: {[[@LINE-1]]:20-[[@LINE-1]]:22}:","
11 // String literal prefixes are good.
12 static_assert(true && R
"(RawString)");
13 // CHECK-DAG: {[[@LINE-1]]:20-[[@LINE-1]]:22}:","
16 // CHECK-DAG: {[[@LINE-1]]:19-[[@LINE-1]]:19}:", \"\""
18 // While its technically possible to transform this to
19 // static_assert(true, "String") we don't attempt this fix.
20 static_assert("String" && true);
21 // CHECK-DAG: {[[@LINE-1]]:31-[[@LINE-1]]:31}:", \"\""
23 // Don't be smart and look in parentheses.
24 static_assert((true && "String"));
25 // CHECK-DAG: {[[@LINE-1]]:33-[[@LINE-1]]:33}:", \"\""