xref: /llvm-project/llvm/test/tools/llvm-ar/create.test (revision fe3b621f05e706fb04dec121c136b6de82a9e277)
1## Test the creation warning and supression of that warning.
2
3RUN: touch %t1.txt
4RUN: touch %t2.txt
5
6RUN: rm -f %t.warning.ar
7RUN: llvm-ar r %t.warning.ar %t1.txt %t2.txt 2>&1 \
8RUN:   | FileCheck %s -DOUTPUT=%t.warning.ar
9
10CHECK: warning: creating [[OUTPUT]]
11
12RUN: rm -f %t.supressed.ar
13RUN: llvm-ar cr %t.supressed.ar %t1.txt %t2.txt 2>&1 | count 0
14