HomeSort by relevance Sort by last modified time
    Searched refs:NonAggregate (Results 1 - 2 of 2) sorted by null

  /external/clang/test/SemaCXX/
dcl_init_aggr.cpp 11 struct NonAggregate {
12 NonAggregate();
16 NonAggregate non_aggregate_test = { 1, 2 }; // expected-error{{non-aggregate type 'NonAggregate' cannot be initialized with an initializer list}}
18 NonAggregate non_aggregate_test2[2] = { { 1, 2 }, { 3, 4 } }; // expected-error 2 {{non-aggregate type 'NonAggregate' cannot be initialized with an initializer list}}
literal-type.cpp 40 class NonAggregate { int x; };
47 static_assert(__is_literal(NonAggregate), "fail");

Completed in 2826 milliseconds