blob: c4acfb715d01fc9ea1c7bece2bbc28fd257bd86e (
plain) (
blame)
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
27
28
29
30
|
//===--- ms_inline_asm.cc - test input file for iwyu ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// This file is not strictly an IWYU test, it just checks that the parser
// doesn't choke on Microsoft inline assembly on any of our target platforms.
// Requires -fms-extensions.
int main() {
int r;
__asm {
// TODO: Add a use here, e.g. by using IndirectClass::statica
// when/if we ever support IWYU analysis inside inline assembly.
mov ecx, 0
mov r, ecx
};
return r;
}
/**** IWYU_SUMMARY
(tests/cxx/ms_inline_asm.cc has correct #includes/fwd-decls)
***** IWYU_SUMMARY */
|