view gcc/testsuite/c-c++-common/attr-used.c @ 16:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-O3" } */

static void function_declaration_before(void) __attribute__((__used__));

static void function_declaration_before(void) {}

static void function_declaration_after(void) {}

static void function_declaration_after(void) __attribute__((__used__));

/* { dg-final { scan-assembler "function_declaration_before" } } */
/* { dg-final { scan-assembler "function_declaration_after" } } */