diff options
Diffstat (limited to 'clang/test/SemaCXX/prefetch-enum.cpp')
-rw-r--r-- | clang/test/SemaCXX/prefetch-enum.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/prefetch-enum.cpp b/clang/test/SemaCXX/prefetch-enum.cpp new file mode 100644 index 0000000..3c77dae --- /dev/null +++ b/clang/test/SemaCXX/prefetch-enum.cpp @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -fsyntax-only %s -verify +// PR5679 + +enum X { A = 3 }; + +void Test() { + char ch; + __builtin_prefetch(&ch, 0, A); +} |