]> granicus.if.org Git - clang/commitdiff
testcase that works now with r62061
authorChris Lattner <sabre@nondot.org>
Mon, 12 Jan 2009 00:08:58 +0000 (00:08 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 12 Jan 2009 00:08:58 +0000 (00:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62062 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/address_spaces.c

index eda7b8a1064acc78b023606c49545e496e550386..8900b08b0d35baab63cc86d377f8d5983e0c5c01 100644 (file)
@@ -17,3 +17,8 @@ void foo(_AS3 float *a) {
 
   *a = 5.0f;
 }
+
+struct _st {
+ int x, y;
+} s __attribute ((address_space(1))) = {1, 1};
+