Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / c-c++-common / restrict-1.c
blob08fc10f5609635a188ac86618b73eb7a70c26070
1 /* { dg-do link } */
2 /* { dg-options "-O -fno-strict-aliasing -fdump-tree-optimized" } */
4 extern void link_error (void);
6 void bar0 (int * __restrict__ arr1, int * __restrict__ arr2)
8 arr1[0] = 1;
9 arr2[0] = 1;
10 if (arr1[0] != 1)
11 link_error ();
14 int main()
16 return 0;
19 /* { dg-final { scan-tree-dump-not "link_error" "optimized" } } */
20 /* { dg-final { cleanup-tree-dump "optimized" } } */