blob: 3e4fd28618d966c1b59221e81d775ebde77a8570 [file] [log] [blame]
/* { dg-do run } */
/* { dg-require-effective-target persistent } */
/* { dg-options "-flto -save-temps" } */
/* { dg-skip-if "data LMA != VMA" { msp430-*-* } { "-mlarge" } } */
/* { dg-final { scan-file attr-persistent-3.ltrans0.ltrans.s ".section\t\.persistent,\"aw\"\n" } } */
/* Test the "persistent" attribute with -flto. Specifically examine the
final LTO assembly file, to ensure the "persistent" setting on the variable
hasn't been lost. */
#include "attr-persistent-main.inc"