1 // RUN: %clang_cc1 -std=c++11 -verify -fsyntax-only %s
2 
3 struct S {
SS4   constexpr S(bool b) : b(b) {}
operator boolS5   constexpr explicit operator bool() const { return b; }
6   bool b;
7 };
8 struct T {
operator intT9   constexpr operator int() const { return 1; }
10 };
11 struct U {
operator intU12   constexpr operator int() const { return 1; } // expected-note {{candidate}}
operator longU13   constexpr operator long() const { return 0; } // expected-note {{candidate}}
14 };
15 
16 static_assert(S(true), "");
17 static_assert(S(false), "not so fast"); // expected-error {{not so fast}}
18 static_assert(T(), "");
19 static_assert(U(), ""); // expected-error {{ambiguous}}
20 
21 static_assert(false, L"\x14hi" "!" R"x(")x"); // expected-error {{static_assert failed L"\024hi!\""}}
22