// RUN: %clang_cc1 %s -fsyntax-only -verify
void ; // expected-error {{parameter may not be qualified with an address space}}
void
s = ;
// rdar://6774906
void * * const base = 0;
void *
char test3_array;
void
typedef void ;
_AS1 ft qf; // expected-error {{function type may not be qualified with an address space}}
typedef _AS1 ft qft; // expected-error {{function type may not be qualified with an address space}}
typedef _AS2 int AS2Int;
;
// Assertion failure was when the field was accessed
void
typedef int PR4997 ; // expected-error {{use of undeclared identifier 'Foobar'}}
int *i; // expected-error {{'address_space' attribute requires an integer constant}}
// Clang extension doesn't forbid operations on pointers to different address spaces.
char*
char *
;
// Compound literals in function scope are lvalues with automatic storage duration,
// so they cannot realistically be qualified with an address space.
void