aboutsummaryrefslogtreecommitdiff
path: root/test/Driver/m_and_mm.c
blob: 6e40c82cb16cf0674b228980889b16bab08a9d88 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: %clang -### \
// RUN:   -M -MM %s 2> %t
// RUN: not grep '"-sys-header-deps"' %t

// RUN: %clang -M -MM %s 2> %t
// RUN: not grep "warning" %t

// RUN: %clang -MMD -MD %s 2> %t || true
// RUN: grep "warning" %t

#warning "This warning shouldn't show up with -M and -MM"
int main (void)
{
    return 0;
}