aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/AsmParser/directive-warning.s
blob: 311989ee3fa16a15b55e08b773c30d7240c92521 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// RUN: llvm-mc -triple i386 %s 2>&1 | FileCheck %s

	.warning
// CHECK: warning: .warning directive invoked in source file
// CHECK-NEXT: 	.warning
// CHECK-NEXT:  ^

	.ifc a,a
		.warning
	.endif
// CHECK: warning: .warning directive invoked in source file
// CHECK-NEXT:		.warning
// CHECK-NEXT:          ^

	.ifnc a,a
		.warning
	.endif
// CHECK-NOT: warning: .warning directive invoked in source file

	.warning "here be dragons"
// CHECK: warning: here be dragons

	.ifc one, two
		.warning "dragons, i say"
	.endif
// CHECK-NOT: warning: dragons, i say