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