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

  /external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.aggr/
p1.cpp 33 struct NonAggr2 {
36 NonAggr2 na2 = { 42 };
38 // expected-error@-2 {{no matching constructor for initialization of 'NonAggr2'}}
68 MaybeAggr5a<NonAggr2> m5a2 = {}; // ok, aggregate init in C++17, default ctor in C++11 and C++14
69 MaybeAggr5a<NonAggr2> m5a3 = {0}; // ok in C++17, overrides default member initializer in base class
  /external/clang/test/SemaCXX/
aggregate-initialization.cpp 16 struct NonAggr2 : public Base { // expected-note 0-3 {{candidate constructor}}
30 NonAggr2 na2 = { 17 };
34 // expected-error@-4{{no matching constructor for initialization of 'NonAggr2'}}
37 NonAggr2 na2b = { {}, 17 }; // ok

Completed in 78 milliseconds