1 /* { dg-do compile } */
2 /* { dg-options "-fsanitize=address -fsanitize-sections=.x* -fdump-tree-sanopt" } */
3 /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */
4 
5 int x __attribute__((section(".x1"))) = 1;
6 int y __attribute__((section(".x2"))) = 1;
7 int z __attribute__((section(".x3"))) = 1;
8 
9 /* { dg-final { scan-tree-dump "__builtin___asan_unregister_globals \\(.*, 3\\);" "sanopt" } } */
10 
11