blob: 5dece1eb38be277bb66e4e5ab86ca97a6087c039 [file] [log] [blame]
/*
The test targets function static unsigned AreElementsOfSameArray(QualType
ObjType,const SubobjectDesignator &A,const SubobjectDesignator &B) and bool
VisitGenericSelectionExpr(const GenericSelectionExpr *E) in ExprConstant.cpp.
*/
#include <stdint.h>
#include <stdio.h>
#include <inttypes.h>
int main() {
int32_t x[66];
int32_t *p;
x[2] = 5;
p = &x[5];
printf("%" PRId32, x[2]);
if (&x[1] - &x[0] != -2) {
return 1;
}
return 0;
}