const-cfstring-2.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 14 行
C
14 行
/* 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* } } */typedef const struct __CFString *CFStringRef;const CFStringRef S = ((CFStringRef)__builtin___CFStringMakeConstantString("Testing"));/* { dg-error "built-in" "built-in function .* requires .* flag" { target *-*-* } 12 } */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?