Searched defs:HasNonConstExprMemInit (Results 1 - 1 of 1) sorted by relevance

/external/clang/test/SemaCXX/
H A Dliteral-type.cpp55 struct HasNonConstExprMemInit { struct
57 constexpr HasNonConstExprMemInit() {} // expected-error {{never produces a constant expression}} function in struct:HasNonConstExprMemInit
58 constexpr HasNonConstExprMemInit(int y) : x(y) {} // ok function in struct:HasNonConstExprMemInit
60 static_assert(__is_literal(HasNonConstExprMemInit), "fail");

Completed in 42 milliseconds