mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-26 14:58:59 -04:00
19 lines
514 B
C++
19 lines
514 B
C++
// RUN: clang -parse-ast-check %s &&
|
|
// XFAIL: *
|
|
|
|
extern char *bork;
|
|
char *& bar = bork;
|
|
|
|
void foo(int &a) {
|
|
}
|
|
|
|
typedef int & A;
|
|
|
|
void g(const A aref) {
|
|
}
|
|
|
|
int & const X; // expected-error {{'const' qualifier may not be applied to a reference}}
|
|
int & volatile Y; // expected-error {{'volatile' qualifier may not be applied to a reference}}
|
|
int & const volatile Z; /* expected-error {{'const' qualifier may not be applied}} \
|
|
expected-error {{'volatile' qualifier may not be applied}} */
|