Lines Matching refs:i1

42   int i1, i2, b1 : 3, b2 : 3;  member
75 int i1 = ToBool() ? 0 : 1; in test() local
79 i1 ? throw 0 : throw 1; in test()
80 i1 ? test() : throw 1; in test()
81 i1 ? throw 0 : test(); in test()
82 i1 ? test() : test(); in test()
83 i1 = i1 ? throw 0 : 0; in test()
84 i1 = i1 ? 0 : throw 0; in test()
85 i1 = i1 ? (throw 0) : 0; in test()
86 i1 = i1 ? 0 : (throw 0); in test()
87i1 ? 0 : test(); // expected-error {{right operand to ? is void, but left operand is of type 'int'… in test()
88i1 ? test() : 0; // expected-error {{left operand to ? is void, but right operand is of type 'int'… in test()
89 (i1 ? throw 0 : i1) = 0; in test()
90 (i1 ? i1 : throw 0) = 0; in test()
91 (i1 ? (throw 0) : i1) = 0; in test()
92 (i1 ? i1 : (throw 0)) = 0; in test()
93 …(i1 ? (void)(throw 0) : i1) = 0; // expected-error {{left operand to ? is void, but right operand … in test()
94 …(i1 ? i1 : (void)(throw 0)) = 0; // expected-error {{right operand to ? is void, but left operand … in test()
95 int &throwRef1 = (i1 ? flds.i1 : throw 0); in test()
96 int &throwRef2 = (i1 ? throw 0 : flds.i1); in test()
97 …int &throwRef3 = (i1 ? flds.b1 : throw 0); // expected-error {{non-const reference cannot bind to … in test()
98 …int &throwRef4 = (i1 ? throw 0 : flds.b1); // expected-error {{non-const reference cannot bind to … in test()
105 Base &bar1 = i1 ? base : derived; in test()
106 Base &bar2 = i1 ? derived : base; in test()
107 Base &bar3 = i1 ? base : conv; in test()
108 Base &bar4 = i1 ? conv : base; in test()
112 …(void)(i1 ? bb : bd); // expected-error {{conditional expression is ambiguous; 'BadBase' can be co… in test()
113 (void)(i1 ? bd : bb); // expected-error {{conditional expression is ambiguous}} in test()
116 (void)(i1 ? BadBase() : BadDerived()); in test()
117 (void)(i1 ? BadDerived() : BadBase()); in test()
123 A a1((i1 ? constret() : Base()).trick()); in test()
124 A a2((i1 ? Base() : constret()).trick()); in test()
125 A a3((i1 ? constret() : Derived()).trick()); in test()
126 A a4((i1 ? Derived() : constret()).trick()); in test()
128 i1 = (i1 ? Base() : Base()).trick(); in test()
129 i1 = (i1 ? Base() : Base()).trick(); in test()
130 i1 = (i1 ? Base() : Derived()).trick(); in test()
131 i1 = (i1 ? Derived() : Base()).trick(); in test()
133 …(void)(i1 ? Base() : constder()); // expected-error {{incompatible operand types ('Base' and 'cons… in test()
134 …(void)(i1 ? constder() : Base()); // expected-error {{incompatible operand types ('const Derived' … in test()
138 (void)(i1 ? Base() : Priv()); // expected-error{{private base class}} in test()
139 (void)(i1 ? Priv() : Base()); // expected-error{{private base class}} in test()
140 …(void)(i1 ? Base() : Fin()); // expected-error{{ambiguous conversion from derived class 'Fin' to b… in test()
141 …(void)(i1 ? Fin() : Base()); // expected-error{{ambiguous conversion from derived class 'Fin' to b… in test()
142 (void)(i1 ? base : priv); // expected-error {{private base class}} in test()
143 (void)(i1 ? priv : base); // expected-error {{private base class}} in test()
144 …(void)(i1 ? base : fin); // expected-error {{ambiguous conversion from derived class 'Fin' to base… in test()
145 …(void)(i1 ? fin : base); // expected-error {{ambiguous conversion from derived class 'Fin' to base… in test()
148 i1 = i1 ? I() : i1; in test()
149 i1 = i1 ? i1 : I(); in test()
150 I i2(i1 ? I() : J()); in test()
151 I i3(i1 ? J() : I()); in test()
153 vfn pfn = i1 ? F() : test; in test()
154 pfn = i1 ? test : F(); in test()
155 (void)(i1 ? A() : B()); // expected-error {{conversion from 'B' to 'A' is ambiguous}} in test()
156 (void)(i1 ? B() : A()); // expected-error {{conversion from 'B' to 'A' is ambiguous}} in test()
157 (void)(i1 ? 1 : Ambig()); // expected-error {{conversion from 'Ambig' to 'int' is ambiguous}} in test()
158 (void)(i1 ? Ambig() : 1); // expected-error {{conversion from 'Ambig' to 'int' is ambiguous}} in test()
160 &(i1 ? i1 : i2); // expected-error {{cannot take the address of an rvalue}} in test()
163 int &ir1 = i1 ? flds.i1 : flds.i2; in test()
164 (i1 ? flds.b1 : flds.i2) = 0; in test()
165 (i1 ? flds.i1 : flds.b2) = 0; in test()
166 (i1 ? flds.b1 : flds.b2) = 0; in test()
170 double d1 = i1 ? I() : K(); in test()
171 pfn = i1 ? F() : G(); in test()
173 pfm = i1 ? DFnPtr() : &Base::fn1; in test()
174 pfm = i1 ? &Base::fn1 : DFnPtr(); in test()
177 i1 = i1 ? i1 : ir1; in test()
178 int *pi1 = i1 ? &i1 : 0; in test()
179 pi1 = i1 ? 0 : &i1; in test()
180 i1 = i1 ? i1 : EVal; in test()
181 i1 = i1 ? EVal : i1; in test()
182 d1 = i1 ? 'c' : 4.0; in test()
183 d1 = i1 ? 4.0 : 'c'; in test()
184 Base *pb = i1 ? (Base*)0 : (Derived*)0; in test()
185 pb = i1 ? (Derived*)0 : (Base*)0; in test()
186 pfm = i1 ? &Base::fn1 : &Derived::fn2; in test()
187 pfm = i1 ? &Derived::fn2 : &Base::fn1; in test()
188 pfm = i1 ? &Derived::fn2 : 0; in test()
189 pfm = i1 ? 0 : &Derived::fn2; in test()
191 i1 ? &MixedFields::ci : &MixedFieldsDerived::i; in test()
193 i1 ? &MixedFields::ci : &MixedFields::cvi; in test()
194 (void)(i1 ? &MixedFields::ci : &MixedFields::vi); in test()
196 &(i1 ? i1 : d1); // expected-error {{cannot take the address of an rvalue}} in test()
198 (void)&(i1 ? flds.b1 : flds.i1); // expected-error {{address of bit-field requested}} in test()
199 (void)&(i1 ? flds.i1 : flds.b1); // expected-error {{address of bit-field requested}} in test()