Skip to content

Commit

Permalink
Add broken test case from mesonbuild#1494.
Browse files Browse the repository at this point in the history
Also, check a file with a subdirectory and extract_objects().
  • Loading branch information
QuLogic committed Aug 14, 2017
1 parent 4a76614 commit c038a29
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions test cases/common/155 duplicate source names/dir1/file.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
int main() { return 0; }
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sources += files('file.c')
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sources += files('file.c', 'dir1/file.c')
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib = static_library('empty', 'file.c', 'dir1/file.c')
7 changes: 7 additions & 0 deletions test cases/common/155 duplicate source names/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
project('proj', 'c')

sources = []
subdir('dir1')
subdir('dir2')
subdir('dir3')
executable('a.out', sources : sources, objects : lib.extract_objects())

0 comments on commit c038a29

Please sign in to comment.