OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [darwin-cfstring-2.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Test whether the __builtin__CFStringMakeConstantString
2
   "function" fails gracefully when used without the
3
   -mconstant-cfstrings flag.  */
4
/* Developed by Ziemowit Laski <zlaski@apple.com>.  */
5
 
6
/* { dg-do compile { target *-*-darwin* } } */
7
/* { dg-options "-mno-constant-cfstrings" } */
8
 
9
typedef const struct __CFString *CFStringRef;
10
 
11
const CFStringRef S = ((CFStringRef)__builtin___CFStringMakeConstantString("Testing"));
12
/* { dg-error "built-in" "built-in function .* requires .* flag" { target *-*-* } 11 } */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.