summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/regparm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/regparm.cpp')
-rw-r--r--clang/test/CodeGenCXX/regparm.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/regparm.cpp b/clang/test/CodeGenCXX/regparm.cpp
new file mode 100644
index 0000000..f0ebd2b
--- /dev/null
+++ b/clang/test/CodeGenCXX/regparm.cpp
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s
+
+
+// CHECK: _Z3fooRi(i32* inreg
+void __attribute__ ((regparm (1))) foo(int &a) {
+}