return LV_NotObjectType;
// Allow qualified void which is an incomplete type other than void (yuck).
- if (TR->isVoidType() && !TR.getQualifiers())
+ if (TR->isVoidType() && !TR.getCanonicalType().getQualifiers())
return LV_IncompleteVoidType;
if (TR->isReferenceType()) // C++ [expr]
}
extern const void cv1;
+
const void *foo4 (void)
{
return &cv1;
{
return &cv2; // expected-error{{address expression must be an lvalue or a function designator}}
}
+
+typedef const void CVT;
+extern CVT cv3;
+
+const void *foo6 (void)
+{
+ return &cv3;
+}
+