Skip to content

Commit

Permalink
Test added
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsiegrist committed Aug 20, 2024
1 parent 102ef44 commit 4968e38
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion src/test/py/bazel/bazel_windows_cpp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ def createProjectFiles(self):
'',
'cc_binary(',
' name = "C",',
' srcs = ["c.cc"],',
' srcs = ['
' "c.cc",'
' "inc.asm",', # Test assemble action_config
' "dec.S",', # Test preprocess-assemble action_config
' ],',
' deps = [":A", ":B" ],',
' linkstatic = 0,',
')',
Expand Down Expand Up @@ -127,6 +131,28 @@ def createProjectFiles(self):

self.ScratchFile('c.cc', c_cc_content)

self.ScratchFile('inc.asm', [
'.code',
'PUBLIC increment',
'increment PROC x:WORD',
' xchg rcx,rax',
' inc rax',
' ret',
'increment EndP',
'END',
])

self.ScratchFile('dec.S', [
'.code',
'PUBLIC decrement',
'decrement PROC x:WORD',
' xchg rcx,rax',
' dec rax',
' ret',
'decrement EndP',
'END',
])

self.ScratchFile('lib/BUILD', [
'cc_library(',
' name = "A",',
Expand Down

0 comments on commit 4968e38

Please sign in to comment.