2010-12-09 05:33:40 +08:00
|
|
|
// RUN: %clang -### \
|
|
|
|
// RUN: -M -MM %s 2> %t
|
2013-07-04 23:22:16 +08:00
|
|
|
// RUN: not grep '"-sys-header-deps"' %t
|
2017-06-17 00:01:13 +08:00
|
|
|
|
|
|
|
// RUN: %clang -M -MM %s 2> %t
|
|
|
|
// RUN: not grep "warning" %t
|
|
|
|
|
2017-06-17 03:29:20 +08:00
|
|
|
// RUN: %clang -MMD -MD %s 2> %t || true
|
2017-06-17 00:01:13 +08:00
|
|
|
// RUN: grep "warning" %t
|
|
|
|
|
|
|
|
#warning "This warning shouldn't show up with -M and -MM"
|
|
|
|
int main (void)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|