diff options
author | Nate Begeman <natebegeman@mac.com> | 2008-03-25 18:36:32 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2008-03-25 18:36:32 +0000 |
commit | c506c781171aa416512c5524145363e905056b6f (patch) | |
tree | 9882fc7dca63d3aefc2444408824d76a67339490 /clang/test/Sema/address_spaces.c | |
parent | 03851eb91f0a08ab2a38b48b03b486bb263b1f2c (diff) | |
download | bcm5719-llvm-c506c781171aa416512c5524145363e905056b6f.tar.gz bcm5719-llvm-c506c781171aa416512c5524145363e905056b6f.zip |
Extend QualType::getAddressSpace to do the right thing for array types, and in
the future, RecordTypes.
llvm-svn: 48784
Diffstat (limited to 'clang/test/Sema/address_spaces.c')
-rw-r--r-- | clang/test/Sema/address_spaces.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Sema/address_spaces.c b/clang/test/Sema/address_spaces.c index 002ba130886..eda7b8a1064 100644 --- a/clang/test/Sema/address_spaces.c +++ b/clang/test/Sema/address_spaces.c @@ -12,7 +12,8 @@ void foo(_AS3 float *a) { int *_AS1 _AS2 *Z; // expected-error {{multiple address spaces specified for type}} _AS1 int local; // expected-error {{automatic variable qualified with an address space}} - _AS1 int array[50]; // expected-error {{automatic variable qualified with an address space}} + _AS1 int array[5]; // expected-error {{automatic variable qualified with an address space}} + _AS1 int arrarr[5][5]; // expected-error {{automatic variable qualified with an address space}} *a = 5.0f; } |