| Nicolas Lesser | 5610cd8 | 2019-01-10 19:03:33 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++17 -Wno-unused %s |
| 2 | |||||
| 3 | void test() { | ||||
| 4 | int xs[10]; | ||||
| 5 | int *p = xs; | ||||
| 6 | // expected-no-diagnostics | ||||
| 7 | p[(long long unsigned)(p = 0)]; // ok | ||||
| 8 | } | ||||