* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / c-c++-common / restrict-1.c
blob15b9dafea43103c86af25eb4e1b4e9d3aad7aa78
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" } } */