continue;
}
CFGElement CE = B[B.size()-1];
+ if (CFGInitializer CI = CE.getAs<CFGInitializer>()) {
+ // A base or member initializer.
+ HasPlainEdge = true;
+ continue;
+ }
+
CFGStmt CS = CE.getAs<CFGStmt>();
if (!CS.isValid())
continue;
for (; f != l; ++f) {
}
}
+
+namespace test2 {
+
+ bool g();
+ void *h() __attribute__((noreturn));
+ void *j();
+
+ struct A {
+ void *f;
+
+ A() : f(0) { }
+ A(int) : f(h()) { } // expected-warning {{function could be attribute 'noreturn'}}
+ A(char) : f(j()) { }
+ A(bool b) : f(b ? h() : j()) { }
+ };
+
+}