diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-15 20:23:22 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2008-10-15 20:23:22 +0000 |
commit | 2e3e75630471a3fb1f9014563e56d8402dd9ecb7 (patch) | |
tree | b3f32f4daee1804c06f2c957b9e817821a463012 /clang/test/SemaCXX/class.cpp | |
parent | ba13e8db177f098be8aec23444c9621af3092a59 (diff) | |
download | bcm5719-llvm-2e3e75630471a3fb1f9014563e56d8402dd9ecb7.tar.gz bcm5719-llvm-2e3e75630471a3fb1f9014563e56d8402dd9ecb7.zip |
Fix this bug:
typedef int f();
struct S {
f *x; // incorrectly assuming this is function decl, leading to failed assertions.
};
llvm-svn: 57598
Diffstat (limited to 'clang/test/SemaCXX/class.cpp')
-rw-r--r-- | clang/test/SemaCXX/class.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/class.cpp b/clang/test/SemaCXX/class.cpp index 71ad7de9143..c3886f3922e 100644 --- a/clang/test/SemaCXX/class.cpp +++ b/clang/test/SemaCXX/class.cpp @@ -26,6 +26,7 @@ public: typedef int func(); func tm; + func *ptm; func btm : 1; // expected-error {{error: bit-field 'btm' with non-integral type}} NestedC bc : 1; // expected-error {{error: bit-field 'bc' with non-integral type}} |