diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-12-06 10:23:07 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-12-06 10:23:07 +0000 |
commit | 6aeb2498914b915fc7ffaa5ddb97c77248440914 (patch) | |
tree | f19dfaa6996eef96647b52375693ef8a7c7ec8de /clang/test/Preprocessor | |
parent | 03435f57aa11aa473b1d1117ac33fa3fcc09171f (diff) | |
download | bcm5719-llvm-6aeb2498914b915fc7ffaa5ddb97c77248440914.tar.gz bcm5719-llvm-6aeb2498914b915fc7ffaa5ddb97c77248440914.zip |
Also recognize -std=iso9899:201x
It should already be handled but a typo in the LANGSTANDARD() definition
was introduced in r147220.
Patch by Alexander Richardson, test case by me.
Differential Revision:https://reviews.llvm.org/D27427
llvm-svn: 288793
Diffstat (limited to 'clang/test/Preprocessor')
-rw-r--r-- | clang/test/Preprocessor/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c index d5d83da0fb3..b003404df6f 100644 --- a/clang/test/Preprocessor/init.c +++ b/clang/test/Preprocessor/init.c @@ -64,6 +64,9 @@ // // // RUN: %clang_cc1 -std=c11 -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix C11 %s +// RUN: %clang_cc1 -std=c1x -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix C11 %s +// RUN: %clang_cc1 -std=iso9899:2011 -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix C11 %s +// RUN: %clang_cc1 -std=iso9899:201x -E -dM < /dev/null | FileCheck -match-full-lines -check-prefix C11 %s // // C11:#define __STDC_UTF_16__ 1 // C11:#define __STDC_UTF_32__ 1 |