diff options
Diffstat (limited to 'test/CodeGenCXX/expr.cpp')
-rw-r--r-- | test/CodeGenCXX/expr.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/expr.cpp b/test/CodeGenCXX/expr.cpp index 26bda055b3..775169d957 100644 --- a/test/CodeGenCXX/expr.cpp +++ b/test/CodeGenCXX/expr.cpp @@ -18,3 +18,13 @@ void test2() { ++a+=10; } // PR7892 int test3(const char*); int test3g = test3(__PRETTY_FUNCTION__); + + +// PR7889 +struct test4A { + int j : 2; +}; +int test4() { + test4A a; + (a.j = 2) = 3; +} |