aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/ffile-prefix-map.c
blob: 88c29ca829bf3b0a86443d0108fc4eb6910ac6c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Test __builtin_FILE(). */
/* { dg-do run } */
/* { dg-options "-ffile-prefix-map==FILE-PREFIX" } */

#include <stdio.h>

int main ()
{
  printf ("__builtin_FILE starts with %s\n", __builtin_FILE ());
}

/* { dg-output "__builtin_FILE starts with FILE-PREFIX" } */