diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-20 04:31:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-20 04:31:01 +0000 |
commit | 410b12e55395216a02a848a791a38b0f153eba87 (patch) | |
tree | 77d6fe06fbb5e403e7d393be3287c9a40e09a58a /test/CodeGenCXX/init-incomplete-type.cpp | |
parent | 14ad03b6f4350f062256757efc4149a7df94bdf9 (diff) |
fix PR10395 - array decay can produce an interesting type when
decaying an array of incomplete type (which has type [0 x i8]*) to a
normal pointer (which has incompletetype*).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135565 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/init-incomplete-type.cpp')
-rw-r--r-- | test/CodeGenCXX/init-incomplete-type.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/CodeGenCXX/init-incomplete-type.cpp b/test/CodeGenCXX/init-incomplete-type.cpp index 1755dfb7be..4f37eeb975 100644 --- a/test/CodeGenCXX/init-incomplete-type.cpp +++ b/test/CodeGenCXX/init-incomplete-type.cpp @@ -28,4 +28,10 @@ namespace incomplete_type_refs { return &g[1]; } -}
\ No newline at end of file +} + +namespace PR10395 { + struct T; + extern T x[]; + T* f() { return x; } +} |