Lines Matching refs:Agg

31 struct Agg {
48 Agg<char> a1 = {1.0F}; // expected-warning {{type 'float' cannot be narrowed to 'char'}} expected-note {{override}}
49 Agg<char> a2 = {1.0}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
50 Agg<char> a3 = {1.0L}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
55 Agg<char> a4 = {f}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
56 Agg<char> a5 = {d}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
57 Agg<char> a6 = {ld}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
59 Agg<char> ce1 = { Convert<float>(1.0) }; // expected-warning {{type 'float' cannot be narrowed to 'char'}} expected-note {{override}}
60 Agg<char> ce2 = { ConvertVar<double>() }; // expected-warning {{type 'double' cannot be narrowed to 'char'}} expected-note {{override}}
75 Agg<float> f1 = {f}; // OK (no-op)
76 Agg<float> f2 = {d}; // expected-warning {{non-constant-expression cannot be narrowed from type 'double' to 'float'}} expected-note {{override}}
77 Agg<float> f3 = {ld}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
79 Agg<float> f4 = {1.0}; // OK (double constant represented exactly)
80 Agg<float> f5 = {1.0L}; // OK (long double constant represented exactly)
82 Agg<float> f6 = {0.1}; // OK (double constant in range but rounded)
83 Agg<float> f7 = {0.1L}; // OK (long double constant in range but rounded)
85 Agg<float> f8 = {1E50}; // expected-warning {{constant expression evaluates to 1.000000e+50 which cannot be narrowed to type 'float'}} expected-note {{override}}
86 Agg<float> f9 = {1E50L}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
89 Agg<float> f10 = {e40 - 5 * e39 + e30 - 5 * e39}; // OK
92 Agg<double> d1 = {f}; // OK (widening)
93 Agg<double> d2 = {d}; // OK (no-op)
94 Agg<double> d3 = {ld}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
96 Agg<double> d4 = {1.0L}; // OK (long double constant represented exactly)
98 Agg<double> d5 = {0.1L}; // OK (long double constant in range but rounded)
100 Agg<double> d6 = {1E315L}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
103 Agg<double> d7 = {e315 - 5 * e314 + e305 - 5 * e314}; // OK
105 Agg<float> ce1 = { Convert<double>(1e300) }; // expected-warning {{constant expression evaluates to 1.000000e+300 which cannot be narrowed to type 'float'}} expected-note {{override}}
106 Agg<double> ce2 = { ConvertVar<long double>() }; // expected-warning {{non-constant-expression cannot be narrowed from type 'long double' to 'double'}} expected-note {{override}}
118 Agg<float> f1 = {c}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
119 Agg<double> f2 = {c}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
120 Agg<long double> f3 = {c}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
123 Agg<float> f4 = {12345678}; // OK (exactly fits in a float)
124 Agg<float> f5 = {123456789}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
126 Agg<float> ce1 = { Convert<int>(123456789) }; // expected-warning {{constant expression evaluates to 123456789 which cannot be narrowed to type 'float'}} expected-note {{override}}
127 Agg<double> ce2 = { ConvertVar<long long>() }; // expected-warning {{non-constant-expression cannot be narrowed from type 'long long' to 'double'}} expected-note {{override}}
139 Agg<char> c1 = {s}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
140 Agg<unsigned short> s1 = {s}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
141 Agg<short> s2 = {us}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
148 Agg<int> i1 = {l1}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
150 Agg<long> l2 = {ll}; // OK
153 Agg<char> c2 = {127}; // OK
154 Agg<char> c3 = {300}; // expected-warning {{ cannot be narrowed }} expected-note {{override}} expected-warning {{changes value}}
156 Agg<int> i2 = {0x7FFFFFFFU}; // OK
157 Agg<int> i3 = {0x80000000U}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
158 Agg<unsigned int> i4 = {-0x80000000L}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
162 Agg<bool> b1 = {0}; // OK
163 Agg<bool> b2 = {1}; // OK
164 Agg<bool> b3 = {-1}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
167 Agg<bool> b = {&b1}; // OK
169 Agg<short> ce1 = { Convert<int>(100000) }; // expected-warning {{constant expression evaluates to 100000 which cannot be narrowed to type 'short'}} expected-note {{override}} expected-warning {{changes value from 100000 to -31072}}
170 Agg<char> ce2 = { ConvertVar<short>() }; // expected-warning {{non-constant-expression cannot be narrowed from type 'short' to 'char'}} expected-note {{override}}
178 Agg<short> s1 = {t}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
179 Agg<short> s2 = {I}; // expected-warning {{ cannot be narrowed }} expected-note {{override}} expected-warning {{changes value}}
180 Agg<T> t2 = {700}; // expected-warning {{ cannot be narrowed }} expected-note {{override}} expected-warning {{changes value}}
195 Agg<const unsigned char> c2 = {j}; // expected-warning {{from type 'int' to 'const unsigned char' in}} expected-note {{override}}