blob: 53cc827a5550fed4be39c760debb5ca10816518a [file] [log] [blame]
Christopher Lambebb97e92008-02-04 02:31:56 +00001// RUN: clang -emit-llvm < %s 2>&1 | grep 'addrspace(1)' | count 5
2int foo __attribute__((address_space(1)));
3int ban[10] __attribute__((address_space(1)));
4
5int bar() { return foo; }
6
Christopher Lambb41a7d22008-02-04 02:35:11 +00007int baz(int i) { return ban[i]; }