blob: c9647210eadf49a4d6d1c03d5b2b29ccbcfe0a2a [file] [log] [blame]
Bill Wendlingcbf47092007-06-03 09:02:28 +00001// RUN: clang -fsyntax-only %s &&
2// RUN: clang -fsyntax-only %s 2>&1 | grep "error: 'const' qualifier may not be applied to a reference" &&
3// RUN: clang -fsyntax-only %s 2>&1 | grep "error: 'volatile' qualifier may not be applied to a reference"
4
Bill Wendling6811c0b2007-05-27 10:16:12 +00005extern char *bork;
6char *& bar = bork;
7
8void foo(int &a) {
9}
Bill Wendlingcbf47092007-06-03 09:02:28 +000010
11typedef int & A;
12
13void g(const A aref) {
14}
15
16int & const X;
17int & volatile Y;
18int & const volatile Z;
19