Home
last modified time | relevance | path

Searched defs:static_assert (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Dis-base-of.mm9 static_assert(__is_base_of(NSObj, NSChild), ""); function
10 static_assert(!__is_base_of(NSChild, NSObj), ""); function
12 static_assert(__is_base_of(NSObj, NSObj), ""); function
14 static_assert(!__is_base_of(NSObj *, NSChild *), ""); function
15 static_assert(!__is_base_of(NSChild *, NSObj *), ""); function
17 static_assert(__is_base_of(const volatile NSObj, NSChild), ""); function
18 static_assert(__is_base_of(NSObj, const volatile NSChild), ""); function
22 static_assert(!__is_base_of(NSForward, NSObj), ""); function
23 static_assert(!__is_base_of(NSObj, NSForward), ""); // expected-error{{incomplete type 'NSForward'}} function
25 static_assert(!__is_base_of(id, NSObj), ""); function
/llvm-project-15.0.7/libcxx/test/libcxx/type_traits/
H A Dis_scalar.objc.pass.mm24 static_assert(std::is_scalar<void (^)(void)>::value, ""); function
25 static_assert(std::is_scalar<void (^)()>::value, ""); function
26 static_assert(std::is_scalar<void (^)(Arg<0>)>::value, ""); function
27 static_assert(std::is_scalar<void (^)(Arg<0>, Arg<1>)>::value, ""); function
28 static_assert(std::is_scalar<void (^)(Arg<0>, Arg<1>, Arg<2>)>::value, ""); function
29 static_assert(std::is_scalar<Foo (^)(void)>::value, ""); function
30 static_assert(std::is_scalar<Foo (^)()>::value, ""); function
31 static_assert(std::is_scalar<Foo (^)(Arg<0>)>::value, ""); function
32 static_assert(std::is_scalar<Foo (^)(Arg<0>, Arg<1>)>::value, ""); function
33 static_assert(std::is_scalar<Foo (^)(Arg<0>, Arg<1>, Arg<2>)>::value, ""); function
/llvm-project-15.0.7/clang/test/Parser/
H A Dobjc-static-assert.mm21 static_assert(1, ""); field
24 static_assert(0, ""); // expected-error {{static assertion failed}} field
27static_assert(a, ""); // expected-error {{static assertion expression is not an integral constant … field
28 static_assert(sizeof(a) == 4, ""); field
29 static_assert(sizeof(a) == 3, ""); // expected-error {{static assertion failed}} field
72static_assert(1, ""); // expected-error {{type name requires a specifier or qualifier}} expected-e… field
H A Dpragma-fenv_access.c40 #define static_assert _Static_assert in main() macro
/llvm-project-15.0.7/clang/test/Preprocessor/
H A Dstatic_assert-already-defined.c15 #define static_assert 12 macro
19 #define static_assert 12 macro
H A Dcxx_oper_keyword_ms_compat.cpp82 #define static_assert macro
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/misc/
H A Dstatic-assert.c18 #define static_assert(x, msg) _Static_assert(x, msg) in f() macro
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dinstantiate-array.cpp8 #define static_assert(__b, __m) \ macro
/llvm-project-15.0.7/clang/test/Lexer/
H A Dcxx0x_keyword_as_cxx98.cpp21 #define static_assert(b, s) int CONCAT(check, __LINE__)[(b) ? 1 : 0]; macro
/llvm-project-15.0.7/clang/test/Modules/
H A Dtemplates.mm72 static_assert(size_left == size_right, "same field both ways"); function
/llvm-project-15.0.7/clang/test/CXX/drs/
H A Ddr18xx.cpp9 #define static_assert(...) __extension__ _Static_assert(__VA_ARGS__) macro
H A Ddr21xx.cpp8 #define static_assert(...) __extension__ _Static_assert(__VA_ARGS__) macro
H A Ddr20xx.cpp9 #define static_assert(...) _Static_assert(__VA_ARGS__) macro
H A Ddr16xx.cpp9 #define static_assert(...) __extension__ _Static_assert(__VA_ARGS__) macro
/llvm-project-15.0.7/lldb/test/API/lang/c/cpp_keyword_identifiers/
H A Dmain.c50 int static_assert = 1; in main() local
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dexpression-traits.cpp20 # define static_assert(b_, m_) \ macro
H A Dabstract.cpp7 #define static_assert(__b, __m) \ macro
H A Dcxx1y-variable-templates_in_class.cpp8 #define static_assert _Static_assert macro