Searched refs:icd (Results 1 - 1 of 1) sorted by relevance

/external/clang/test/SemaCXX/
H A Ddiscrim-union.cpp101 typedef either<int, char, double> icd; typedef
102 constexpr icd icd1 = an<int>(4);
103 constexpr icd icd2 = a<char>('x');
104 constexpr icd icd3 = a<double>(6.5);
114 constexpr either<const icd*, non_triv> icd4 = a<const icd*>(&icd2);
115 constexpr either<const icd*, non_triv> icd5 = a<non_triv>();
117 static_assert(icd4.get<const icd*>()->get<char>() == 'x', "");

Completed in 58 milliseconds