blob: b620185bfad71401cd047aae2bbc58fb5c1ab877 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* { dg-do link } */
/* { dg-options "-flto -fipa-type-escape-analysis -fdump-ipa-type-escape-analysis -fprint-escape-analysis" } */
#include <stddef.h>
#include <stdio.h>
int main(int argc, char** argv)
{
struct astruct_s { _Bool a; _Bool b; _Bool c; };
volatile struct astruct_s astruct;
}
// This says that astruct_s has a volatile
/* { dg-final { scan-wpa-ipa-dump " record astruct_s .boolean_type a.boolean_type b.boolean_type c.. reason: g=0 p=0 r=0 c=0 v=1 u=0" "type-escape-analysis" } } */
|