Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / pr81697.c
blob3a85813261db1aa5406062402f75df4b823eff12
1 /* { dg-options "-fmerge-all-constants" } */
2 /* { dg-do run } */
3 /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
5 const char kRecoveryInstallString[] = "NEW";
6 const char kRecoveryUpdateString[] = "UPDATE";
7 const char kRecoveryUninstallationString1[] = "INSTALL";
8 const char kRecoveryUninstallationString2[] = "UNINSTALL";
10 volatile const int zero = 0;
12 int
13 main()
15 char x1 = kRecoveryInstallString[zero + 0];
16 char x2 = kRecoveryUpdateString[zero + 0];
17 char x3 = kRecoveryUninstallationString1[zero + 0];
18 char x4 = kRecoveryUninstallationString2[zero + 0];
19 return (x1 + x2 + x3 + x4) == 0;