aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/builtin-attributes.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-03-24 05:09:45 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-03-24 05:09:45 +0000
commitc285372e69f42d95ca638d74abd1f46bd7b77a96 (patch)
tree89f4ede534d6d65c108056dac6cb3d3fe420cd6f /test/CodeGen/builtin-attributes.c
parent4230d529a8797bbeef2328b60abeae333f7e143f (diff)
Make sure we aggressively attach nounwind (etc.) to calls to library
functions of the form __builtin_XXX. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128198 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/builtin-attributes.c')
-rw-r--r--test/CodeGen/builtin-attributes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/CodeGen/builtin-attributes.c b/test/CodeGen/builtin-attributes.c
index afde3fab84..822b8eecf7 100644
--- a/test/CodeGen/builtin-attributes.c
+++ b/test/CodeGen/builtin-attributes.c
@@ -10,3 +10,8 @@ void f0() {
void f1() {
exit(1);
}
+
+// CHECK: call i8* @strstr{{.*}} nounwind
+char* f2(char* a, char* b) {
+ return __builtin_strstr(a, b);
+}