Home
last modified time | relevance | path

Searched refs:FibTree (Results 1 – 1 of 1) sorted by relevance

/external/llvm-project/clang/test/SemaCXX/
Dcxx1y-initializer-aggregates.cpp66 struct FibTree { struct
68 FibTree *l = // expected-note {{declared here}} argument
69 … n > 1 ? new FibTree{n-1} : &fib0; // expected-error {{default member initializer for 'l' needed}}
70 FibTree *r = // expected-note {{declared here}} argument
71 … n > 2 ? new FibTree{n-2} : &fib0; // expected-error {{default member initializer for 'r' needed}}
74 static FibTree fib0; argument
76 FibTree FibTree::fib0{0, nullptr, nullptr, 1};
78 int fib(int n) { return FibTree{n}.v; } in fib()