blob: 904751124530657b5190c942d0bc045d689caeda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* APPLE LOCAL file constant cfstrings */
/* Test whether the __builtin__CFStringMakeConstantString
"function" fails gracefully when used without the
-fconstant-cfstrings flag. */
/* Developed by Ziemowit Laski <zlaski@apple.com>. */
/* { dg-options "-fno-constant-cfstrings" } */
/* { dg-do compile { target *-*-darwin* } } */
#include <CoreFoundation/CFBase.h>
const CFStringRef S = ((CFStringRef)__builtin___CFStringMakeConstantString("Testing"));
/* { dg-error "built-in" "built-in function .* requires .* flag" { target *-*-* } 12 } */
|