blob: 3c221fb8d65600be47e0ba857ca5c8057a9c09c5 [file] [log] [blame]
Nicolas Lesser5610cd82019-01-10 19:03:33 +00001// RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 -Wno-unused %s
2
3void test() {
4 int xs[10];
5 int *p = xs;
6 // expected-no-diagnostics
7 p[(long long unsigned)(p = 0)]; // ok
8}