libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / darwin-version-1.c
blob2ca34c6c0076def9c0ac819e687b40cb7e4121d3
1 /* Basic test of the -mmacosx-version-min option. */
3 /* Darwin4 corresponds to MacOS 10.0. */
4 /* { dg-options "-mmacosx-version-min=10.1" { target *-*-darwin[456789]* } } */
5 /* Later Darwin linkers decline to link for less than Darwin8/MacOS 10.4.
6 However, we need to make the link for 10.6 because the relevant libgcc_s
7 shim files for 10.4 and 10.5 are also not installed in later SDKs. */
8 /* { dg-options "-mmacosx-version-min=10.6" { target *-*-darwin1[01234567]* } } */
9 /* From XCode 11.4 on 10.14/15 10.6 and 10.7 are also deprecated. */
10 /* { dg-options "-mmacosx-version-min=10.8" { target *-*-darwin1[89]* } } */
11 /* { dg-do link { target *-*-darwin* } } */
13 int main()
15 return 0;