diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-05-24 21:24:35 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-05-24 21:24:35 +0000 |
commit | 912964863c344dd84976ee281bd213d0485645ba (patch) | |
tree | b4d60db563f5b32217a48c466181796e6cd4e0c7 /test/CodeGenCXX/debug-info-cxx1y.cpp | |
parent | d27e5cbff3c98fa3f623c75dce7165176c1f98a5 (diff) |
PR16091: Error when attempting to emit debug info for undeduced auto return types
Perhaps we should just suppress this, rather than erroring, but since we
have the infrastructure for it I figured I'd use it - if this is
determined to be not the right thing we should probably remove that
infrastructure entirely. I guess it's lying around from the early days
of implementing debug info support.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182673 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-cxx1y.cpp')
-rw-r--r-- | test/CodeGenCXX/debug-info-cxx1y.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-cxx1y.cpp b/test/CodeGenCXX/debug-info-cxx1y.cpp new file mode 100644 index 0000000000..e5bfd5782e --- /dev/null +++ b/test/CodeGenCXX/debug-info-cxx1y.cpp @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -emit-llvm-only -std=c++1y -g %s 2>&1 | FileCheck %s + +struct foo { + auto func(); // CHECK: error: debug information for auto is not yet supported +}; + +foo f; |