summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pragma-re-4.c
blob: 627e0b6e0c3da25710d812aa32309dd14b270c64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Copyright (C) 2006 Free Software Foundation, Inc. */
/* Contributed by Carlos O'Donell on 2006-01-27 */

/* Origin: Carlos O'Donell <carlos@codesourcery.com> */
/* { dg-final { scan-assembler "_foo" } } */
/* { dg-final { scan-assembler-not "_foo64" } } */

#define foo     _foo
#define foo64   _foo64
extern int foo(void);
extern int foo64(void);
#pragma redefine_extname foo64 foo
int
bar()
{
        return (foo64());
}