145
|
1 /* Test that we can handle leading-zeros on mmacosx-version-min for invocations
|
|
2 including linking (so that spec processing works). To make sure that any
|
|
3 necessary target libs are present we make this specific to the target version
|
|
4 being built. */
|
|
5 /* { dg-do link { target *-*-darwin* } } */
|
|
6 /* { dg-additional-options "-mmacosx-version-min=010.04.11 -DCHECK=1049" { target *-*-darwin8* } } */
|
|
7 /* { dg-additional-options "-mmacosx-version-min=010.05.08 -DCHECK=1058" { target *-*-darwin9* } } */
|
|
8 /* { dg-additional-options "-mmacosx-version-min=010.06.08 -DCHECK=1068" { target *-*-darwin10* } } */
|
|
9 /* { dg-additional-options "-mmacosx-version-min=010.07.05 -DCHECK=1075" { target *-*-darwin11* } } */
|
|
10 /* { dg-additional-options "-mmacosx-version-min=010.08.05 -DCHECK=1085" { target *-*-darwin12* } } */
|
|
11 /* { dg-additional-options "-mmacosx-version-min=010.09.05 -DCHECK=1095" { target *-*-darwin13* } } */
|
|
12 /* { dg-additional-options "-mmacosx-version-min=010.010.03 -DCHECK=101003" { target *-*-darwin14* } } */
|
|
13 /* { dg-additional-options "-mmacosx-version-min=010.011.06 -DCHECK=101106" { target *-*-darwin15* } } */
|
|
14 /* { dg-additional-options "-mmacosx-version-min=010.012.06 -DCHECK=101206" { target *-*-darwin16* } } */
|
|
15 /* { dg-additional-options "-mmacosx-version-min=010.013.06 -DCHECK=101306" { target *-*-darwin17* } } */
|
|
16 /* This next test covers 10.18 and (currently unreleased) 10.19 for now. */
|
|
17 /* { dg-additional-options "-mmacosx-version-min=010.014.05 -DCHECK=101405" { target *-*-darwin1[89]* } } */
|
|
18
|
|
19 int
|
|
20 main ()
|
|
21 {
|
|
22 #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ != CHECK
|
|
23 fail me;
|
|
24 #endif
|
|
25 return 0;
|
|
26 }
|