diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-04-30 02:51:06 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-04-30 02:51:06 +0000 |
commit | 4290fbd89e851c1f1240a007461f4afd940cbb47 (patch) | |
tree | 8e9452f27f10c3f92afdb8785e6db7fff5178036 /test/Preprocessor/init.c | |
parent | 9dffe6f51c676c1e423c382c62d1648746e36cd4 (diff) |
Add Clang version inspection macros. Fixes PR6681.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102686 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/init.c')
-rw-r--r-- | test/Preprocessor/init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Preprocessor/init.c b/test/Preprocessor/init.c index 4ef460bbc6..7909921784 100644 --- a/test/Preprocessor/init.c +++ b/test/Preprocessor/init.c @@ -48,6 +48,10 @@ // COMMON:#define __STDC__ 1 // COMMON:#define __VERSION__ // COMMON:#define __clang__ 1 +// COMMON:#define __clang_major__ 2 +// COMMON:#define __clang_minor__ 0 +// COMMON:#define __clang_patchlevel__ 0 +// COMMON:#define __clang_version__ "2.0 (trunk 102685)" // COMMON:#define __llvm__ 1 // // |