Teach emit-llvm for scalars to properly handle compound assignment 
operators in all their glory :)


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41373 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/compound.c b/test/CodeGen/compound.c
new file mode 100644
index 0000000..e3fae12
--- /dev/null
+++ b/test/CodeGen/compound.c
@@ -0,0 +1,14 @@
+// RUN: clang %s -emit-llvm
+int A;
+long long B;
+int C;
+int *P;
+void foo() {
+  C = (A /= B);
+
+  P -= 4;
+
+  C = P - (P+10);
+}
+
+