brintos

brintos / llvm-project-archived public Read only

0
0
Text · 300 B · 4f131d7 Raw
15 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3volatile int i;4 5const int &inc = i++;6const int &dec = i--;7 8const int &incfail = ++i; // expected-error {{drops 'volatile' qualifier}}9const int &decfail = --i; // expected-error {{drops 'volatile' qualifier}}10 11// PR779412void f0(int e) {13  ++(int&)e;14}15