Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / asan / user-section-3.c
blob3e32591b1d4890572561454d297f28245db48ec0
1 /* { dg-do compile } */
2 /* { dg-options "-fsanitize=address -fsanitize-sections=.x* -fsanitize-sections=.y* -fdump-tree-sanopt" } */
3 /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
5 int x __attribute__((section(".x1"))) = 1;
6 int y __attribute__((section(".x2"))) = 1;
7 int z __attribute__((section(".y1"))) = 1;
9 /* { dg-final { scan-tree-dump "__builtin___asan_unregister_globals \\(.*, 1\\);" "sanopt" } } */