blob: a7a08b163684196869ff0648a389460888a38004 [file] [log] [blame]
Chris Lattnere6327742008-04-02 05:18:44 +00001// RUN: clang -emit-llvm < %s 2>&1 | grep 'addrspace(1)' | count 6
Christopher Lambebb97e92008-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 Lambb41a7d22008-02-04 02:35:11 +00007int baz(int i) { return ban[i]; }