| 1 |
/* { dg-do link } */ |
| 2 |
/* { dg-do run { target { vma_equals_lma } } } */ |
| 3 |
/* { dg-require-effective-target persistent } */ |
| 4 |
/* { dg-options "-flto -save-temps" } */ |
| 5 |
/* { dg-skip-if "data LMA != VMA" { msp430-*-* } { "-mlarge" } } */ |
| 6 |
/* { dg-final { scan-file attr-persistent-3.ltrans0.ltrans.s ".section\t\.persistent,\"aw\"\n" } } */ |
| 7 |
|
| 8 |
/* Test the "persistent" attribute with -flto. Specifically examine the |
| 9 |
final LTO assembly file, to ensure the "persistent" setting on the variable |
| 10 |
hasn't been lost. */ |
| 11 |
#include "attr-persistent-main.inc" |