1 // XFAIL
: target
={{.*}}-aix{{.*}}
3 // RUN
: %clang
-### -c -integrated-as %s \
4 // RUN
: -Wa
,-defsym
,abc
=5 -Wa
,-defsym
,xyz
=0xa \
5 // RUN
: 2>&1 | FileCheck
%s
--check-prefix
=CHECK-DEFSYM1
7 // RUN
: %clang
-### -c -no-integrated-as -target x86_64-unknown-unknown %s \
8 // RUN
: -Wa
,-defsym
,abc
=5 -Wa
,-defsym
,xyz
=0xa \
9 // RUN
: 2>&1 | FileCheck
%s
--check-prefix
=CHECK-DEFSYM1
11 // CHECK-DEFSYM1
: "-defsym"
12 // CHECK-DEFSYM1
: "abc=5"
13 // CHECK-DEFSYM1
: "-defsym"
14 // CHECK-DEFSYM1
: "xyz=0xa"
16 // RUN
: not %clang
-c
-integrated-as
-o
/dev
/null
%s \
17 // RUN
: -Wa
,-defsym
,abc
= \
18 // RUN
: 2>&1 | FileCheck
%s
--check-prefix
=CHECK-DEFSYM-ERR1
19 // CHECK-DEFSYM-ERR1
: error
: defsym must
be of the form
: sym
=value
: abc
=
21 // RUN
: not %clang
-c
-integrated-as
-o
/dev
/null
%s \
22 // RUN
: -Wa
,-defsym
,=123 \
23 // RUN
: 2>&1 | FileCheck
%s
--check-prefix
=CHECK-DEFSYM-ERR2
24 // CHECK-DEFSYM-ERR2
: error
: defsym must
be of the form
: sym
=value
: =123
26 // RUN
: not %clang
-c
-integrated-as
-o
/dev
/null
%s \
27 // RUN
: -Wa
,-defsym
,abc
=1a2b3c \
28 // RUN
: 2>&1 | FileCheck
%s
--check-prefix
=CHECK-DEFSYM-ERR3
29 // CHECK-DEFSYM-ERR3
: error
: value is
not an integer
: 1a2b3c
31 // RUN
: not %clang
-c
-integrated-as
-o
/dev
/null
%s \
33 // RUN
: 2>&1 | FileCheck
%s
--check-prefix
=CHECK-DEFSYM-ERR4
35 // RUN
: not %clang
-c
-integrated-as
-o
/dev
/null
%s \
36 // RUN
: -Wa
,-defsym
, \
37 // RUN
: 2>&1 | FileCheck
%s
--check-prefix
=CHECK-DEFSYM-ERR4
39 // CHECK-DEFSYM-ERR4
: error
: defsym must
be of the form
: sym
=value
: -defsym