1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc 3*f4a2713aSLionel Sambuc volatile int i; 4*f4a2713aSLionel Sambuc 5*f4a2713aSLionel Sambuc const int &inc = i++; 6*f4a2713aSLionel Sambuc const int &dec = i--; 7*f4a2713aSLionel Sambuc 8*f4a2713aSLionel Sambuc const int &incfail = ++i; // expected-error {{drops qualifiers}} 9*f4a2713aSLionel Sambuc const int &decfail = --i; // expected-error {{drops qualifiers}} 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc // PR7794 f0(int e)12*f4a2713aSLionel Sambucvoid f0(int e) { 13*f4a2713aSLionel Sambuc ++(int&)e; 14*f4a2713aSLionel Sambuc } 15