HomeSort by relevance Sort by last modified time
    Searched full:static_assert (Results 26 - 50 of 247) sorted by null

12 3 4 5 6 7 8 910

  /external/clang/test/Lexer/
cxx0x_keyword_as_cxx98.cpp 21 #define static_assert(b, s) int CONCAT(check, __LINE__)[(b) ? 1 : 0]; macro
22 static_assert(1 > 0, "hello"); // ok
35 int static_assert; // expected-warning {{'static_assert' is a keyword in C++11}} variable
char-literal-encoding-error.c 13 static_assert((unsigned char)'?' == 0xE9, ""); // expected-warning {{illegal character encoding in character literal}}
14 static_assert('??' == 0xE9E9, ""); // expected-warning {{illegal character encoding in character literal}} expected-warning {{multi-character character constant}}
  /external/clang/test/SemaCXX/
constexpr-value-init.cpp 19 static_assert(b2.a.a == 1, "");
20 static_assert(b2.a.b == 2, "");
30 static_assert(D().c == 0, "");
31 static_assert(D().d == 0, "");
cxx0x-initializer-references.cpp 31 static_assert(sizeof(arrayRef) == 3 * sizeof(int), "bad array size");
61 static_assert(sizeof(f({1})) == sizeof(one), "bad overload resolution");
66 static_assert(sizeof(g({1})) == sizeof(two), "bad overload resolution");
71 static_assert(sizeof(h({1, 2})) == sizeof(two), "bad overload resolution");
cxx0x-initializer-constructor.cpp 45 A() { static_assert(N == 0, ""); }
46 A(int, double) { static_assert(N == 1, ""); }
51 F() { static_assert(N == 0, ""); }
52 F(int, double) { static_assert(N == 1, ""); }
53 F(std::initializer_list<int>) { static_assert(N == 3, ""); }
58 D(std::initializer_list<int>) { static_assert(N == 0, ""); } // expected-note 1 {{candidate}}
59 D(std::initializer_list<double>) { static_assert(N == 1, ""); } // expected-note 1 {{candidate}}
64 E(int, int) { static_assert(N == 0, ""); }
65 E(X1, int) { static_assert(N == 1, ""); }
138 static_assert(sizeof(ov1({})) == sizeof(two), "bad overload")
    [all...]
alignof-sizeof-reference.cpp 7 static_assert(alignof(r) == 1, "bad alignment");
8 static_assert(sizeof(r) == 1, "bad size");
cxx0x-initializer-stdinitializerlist.cpp 86 static_assert(sizeof(overloaded({1, 2, 3})) == sizeof(one), "bad overload");
87 static_assert(sizeof(overloaded({ {1, 2}, {2, 3}, {} })) == sizeof(two), "bad overload");
96 static_assert(sizeof(ov2({1, 2, 3})) == sizeof(one), "bad overload");
107 static_assert(same_type<decltype(deduce({1, 2, 3})), int>::value, "bad deduction");
108 static_assert(same_type<decltype(deduce({1.0, 2.0, 3.0})), double>::value, "bad deduction");
112 static_assert(same_type<decltype(deduce_ref({1, 2, 3})), int>::value, "bad deduction");
113 static_assert(same_type<decltype(deduce_ref({1.0, 2.0, 3.0})), double>::value, "bad deduction");
120 static_assert(same_type<decltype(l), std::initializer_list<int>>::value, "");
discrim-union.cpp 106 static_assert(icd1.get<int>() == 4, "");
107 static_assert(icd2.get<char>() == 'x', "");
108 static_assert(icd3.get<double>() == 6.5, "");
117 static_assert(icd4.get<const icd*>()->get<char>() == 'x', "");
118 static_assert(icd5.get<non_triv>().n == 5, "");
  /external/clang/test/CXX/lex/lex.literal/lex.ext/
p8.cpp 10 static_assert(streq(s, "foobarbazquux"), "");
16 static_assert(streq(t, "foo"), "");
p3.cpp 18 static_assert(123456789012345678901234567890123456789012345678901234567890_x3 == 60, "");
p4.cpp 18 static_assert(1e1000000_x3 == 9, "");
  /external/clang/test/CodeGenCXX/
union-dtor.cpp 7 Foo() { static_assert(b, "Foo::Foo used"); }
8 ~Foo() { static_assert(b, "Foo::~Foo used"); }
  /external/clang/test/PCH/
cxx-static_assert.cpp 12 static_assert(N == 2, "N is not 2!");
17 // expected-error@12 {{static_assert failed "N is not 2!"}}
cxx_exprs.cpp 31 static_assert(true_value, "true_value is true");
32 static_assert(!false_value, "false_value is false");
  /libcore/include/
StaticAssert.h 21 * Similar to C++0x's static_assert. Message argument must be a valid identifier, not a string.
25 #define STATIC_ASSERT(exp, msg) typedef StaticAssert<(bool(exp))> msg[bool(exp) ? 1 : -1]
  /external/clang/test/CXX/special/class.copy/
implicit-move.cpp 47 static_assert(!noexcept(HasCopyConstructor((HasCopyConstructor()))), "");
49 static_assert(!noexcept(hcc = HasCopyConstructor()), "");
51 static_assert(!noexcept(HasCopyAssignment((HasCopyAssignment()))), "");
53 static_assert(!noexcept(hca = HasCopyAssignment()), "");
55 static_assert(noexcept(HasMoveConstructor((HasMoveConstructor()))), "");
61 static_assert(noexcept(hma = HasMoveAssignment()), "");
63 static_assert(!noexcept(HasDestructor((HasDestructor()))), "");
65 static_assert(!noexcept(hd = HasDestructor()), "");
127 static_assert(!noexcept(InheritsPrivateMove(InheritsPrivateMove())), "");
128 static_assert(!noexcept(ContainsPrivateMove(ContainsPrivateMove())), "")
    [all...]
p13-0x.cpp 89 static_assert(__is_literal_type(U), "");
90 static_assert(!__is_literal_type(V), "");
91 static_assert(!__is_literal_type(W), "");
92 static_assert(__is_literal_type(S<U>), "");
93 static_assert(!__is_literal_type(S<V>), "");
94 static_assert(!__is_literal_type(S<W>), "");
  /external/clang/test/CXX/expr/expr.prim/expr.prim.lambda/
p14.cpp 51 static_assert(sizeof(x) == sizeof(ExpectedArrayLayout), "layout mismatch");
66 static_assert(sizeof(x) == sizeof(ExpectedLayout), "Layout mismatch!");
73 static_assert(sizeof(x) == sizeof(ExpectedThisLayout), "Layout mismatch!");
p5.cpp 54 static_assert(!noexcept(tl1()), "lambda can throw");
55 static_assert(!noexcept(tl2()), "lambda can throw");
60 static_assert(noexcept(ntl1()), "lambda cannot throw");
61 static_assert(noexcept(ntl2()), "lambda cannot throw");
62 static_assert(noexcept(ntl3()), "lambda cannot throw");
  /external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
p5.cpp 19 static_assert(f(0) == 0, "");
20 static_assert(f('0') == 1, "");
21 static_assert(g1() == 0, "");
22 static_assert(g2(0) == 1, "");
23 static_assert(g2(1) == 1, "");
24 static_assert(g3(0) == 1, "");
25 static_assert(g3(1) == 1, "");
26 static_assert(N::h() == 5, "");
27 static_assert(g4() == 5, "");
85 static_assert(BcpCall(0), "")
    [all...]
  /external/clang/test/CXX/temp/temp.decls/temp.variadic/
fixed-expansion.cpp 29 static_assert(is_same<X1<int, int>::type,
33 static_assert(is_same<X1<int, int, float>::type,
37 static_assert(is_same<X1<int, int, float, double>::type,
55 static_assert(is_same<X1<int>::type,
59 static_assert(is_same<X1<int, float>::type,
63 static_assert(is_same<X1<int, float, double>::type,
  /external/clang/test/CXX/except/except.spec/
p14.cpp 40 static_assert(noexcept(IC0()), "IC0() does not throw");
41 static_assert(!noexcept(IC1()), "IC1() throws");
63 static_assert(!noexcept(X(X::val())), "");
64 static_assert(!noexcept(X::ref() = X::val()), "");
  /external/clang/test/CXX/expr/expr.prim/expr.prim.general/
p3-0x.cpp 15 static_assert(!noexcept(a.g1()), "exception-specification failure");
16 static_assert(noexcept(a.g2()), "exception-specification failure");
41 static_assert(!noexcept(ci.g1()), "exception-specification failure");
42 static_assert(noexcept(ci.g2()), "exception-specification failure");
  /external/clang/test/CXX/class/class.union/
p2-0x.cpp 30 static_assert(U2<int>::k1 == sizeof(int), "");
31 static_assert(U2<char>::k1 == sizeof(char), "");
  /external/clang/test/CXX/expr/expr.ass/
p9-cxx11.cpp 30 static_assert((T() = {4, 9}) == 4, "");
31 static_assert((T() += {4, 9}) == 9, "");

Completed in 293 milliseconds

12 3 4 5 6 7 8 910