2008-04-02 13:18:44 +08:00
|
|
|
// RUN: clang -emit-llvm < %s 2>&1 | grep 'addrspace(1)' | count 6
|
2008-02-04 10:31:56 +08:00
|
|
|
int foo __attribute__((address_space(1)));
|
|
|
|
int ban[10] __attribute__((address_space(1)));
|
|
|
|
|
|
|
|
int bar() { return foo; }
|
|
|
|
|
2008-02-04 10:35:11 +08:00
|
|
|
int baz(int i) { return ban[i]; }
|