diff options
author | dim <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-11-24 09:15:30 +0000 |
commit | 173a4f43a911175643bda81ee675e8d9269056ea (patch) | |
tree | 47df2c12b57214af6c31e47404b005675b8b7ffc /test/Sema/format-strings-enum.c | |
parent | 88f7a7d5251a2d813460274c92decc143a11569b (diff) | |
download | FreeBSD-src-173a4f43a911175643bda81ee675e8d9269056ea.zip FreeBSD-src-173a4f43a911175643bda81ee675e8d9269056ea.tar.gz |
Vendor import of clang RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_350/final@216957
Diffstat (limited to 'test/Sema/format-strings-enum.c')
-rw-r--r-- | test/Sema/format-strings-enum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Sema/format-strings-enum.c b/test/Sema/format-strings-enum.c index a6c27d0..e79f859 100644 --- a/test/Sema/format-strings-enum.c +++ b/test/Sema/format-strings-enum.c @@ -20,7 +20,7 @@ void test(TestEnum input) { printf("%d", input); // no-warning printf("%d", Constant); // no-warning - printf("%lld", input); // expected-warning{{format specifies type 'long long' but the argument has type 'TestEnum'}} + printf("%lld", input); // expected-warning-re{{format specifies type 'long long' but the argument has underlying type '{{(unsigned)?}} int'}} printf("%lld", Constant); // expected-warning{{format specifies type 'long long'}} } @@ -28,7 +28,7 @@ void test(TestEnum input) { typedef enum { LongConstant = ~0UL } LongEnum; void testLong(LongEnum input) { - printf("%u", input); // expected-warning{{format specifies type 'unsigned int' but the argument has type 'LongEnum'}} + printf("%u", input); // expected-warning{{format specifies type 'unsigned int' but the argument has underlying type}} printf("%u", LongConstant); // expected-warning{{format specifies type 'unsigned int'}} printf("%lu", input); |