aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/cpp/wide-narrow-predef-macros.c
blob: d5440f8a61e457def011b14072dddea1ddbd6e5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
   { dg-do compile }
 */

#if !defined(__GNUC_EXECUTION_CHARSET_NAME)
#error "Required implementation macro for comple-time charset name is not present"
#endif
#if !defined(__GNUC_WIDE_EXECUTION_CHARSET_NAME)
#error "Required implementation macro for wide comple-time charset name is not present"
#endif

const char narrow_name[] = __GNUC_EXECUTION_CHARSET_NAME;
const char wide_name[] = __GNUC_WIDE_EXECUTION_CHARSET_NAME;